@@ -475,7 +475,7 @@ A `module` directive defines the main module's [path](#glos-module-path). A
475
475
` go.mod ` file must contain exactly one ` module ` directive.
476
476
477
477
```
478
- ModuleDirective = "module" ( ModulePath | "(" newline ModulePath newline ")" newline .
478
+ ModuleDirective = "module" ( ModulePath | "(" newline ModulePath newline ")" ) newline .
479
479
```
480
480
481
481
Example:
@@ -594,7 +594,7 @@ ignored in other modules. See [Minimal version
594
594
selection] ( #minimal-version-selection ) for details.
595
595
596
596
```
597
- ExcludeDirective = "exclude" ( ExcludeSpec | "(" newline { ExcludeSpec } ")" ) .
597
+ ExcludeDirective = "exclude" ( ExcludeSpec | "(" newline { ExcludeSpec } ")" newline ) .
598
598
ExcludeSpec = ModulePath Version newline .
599
599
```
600
600
@@ -638,7 +638,7 @@ and are ignored in other modules. See [Minimal version
638
638
selection] ( #minimal-version-selection ) for details.
639
639
640
640
```
641
- ReplaceDirective = "replace" ( ReplaceSpec | "(" newline { ReplaceSpec } ")" newline ")" ) .
641
+ ReplaceDirective = "replace" ( ReplaceSpec | "(" newline { ReplaceSpec } ")" newline ) .
642
642
ReplaceSpec = ModulePath [ Version ] "=>" FilePath newline
643
643
| ModulePath [ Version ] "=>" ModulePath Version newline .
644
644
FilePath = /* platform-specific relative or absolute file path */
@@ -725,7 +725,7 @@ appears above a block, it applies to all `retract` directives within the block
725
725
that don't have their own comments. A rationale comment may span multiple lines.
726
726
727
727
```
728
- RetractDirective = "retract" ( RetractSpec | "(" newline { RetractSpec } ")" ) .
728
+ RetractDirective = "retract" ( RetractSpec | "(" newline { RetractSpec } ")" newline ) .
729
729
RetractSpec = ( Version | "[" Version "," Version "]" ) newline .
730
730
```
731
731
0 commit comments