Skip to content

Commit

Permalink
_content/doc: fix grammar in mod.md
Browse files Browse the repository at this point in the history
Change-Id: I8b40c59e567eb874c37f17adf8727575dddf205a
Reviewed-on: https://go-review.googlesource.com/c/website/+/308389
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
  • Loading branch information
Ahmet Aktürk authored and Jay Conrod committed Apr 8, 2021
1 parent 01ee65b commit 0cf64a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _content/doc/mod.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ A `module` directive defines the main module's [path](#glos-module-path). A
`go.mod` file must contain exactly one `module` directive.

```
ModuleDirective = "module" ( ModulePath | "(" newline ModulePath newline ")" newline .
ModuleDirective = "module" ( ModulePath | "(" newline ModulePath newline ")" ) newline .
```

Example:
Expand Down Expand Up @@ -594,7 +594,7 @@ ignored in other modules. See [Minimal version
selection](#minimal-version-selection) for details.

```
ExcludeDirective = "exclude" ( ExcludeSpec | "(" newline { ExcludeSpec } ")" ) .
ExcludeDirective = "exclude" ( ExcludeSpec | "(" newline { ExcludeSpec } ")" newline ) .
ExcludeSpec = ModulePath Version newline .
```

Expand Down Expand Up @@ -638,7 +638,7 @@ and are ignored in other modules. See [Minimal version
selection](#minimal-version-selection) for details.

```
ReplaceDirective = "replace" ( ReplaceSpec | "(" newline { ReplaceSpec } ")" newline ")" ) .
ReplaceDirective = "replace" ( ReplaceSpec | "(" newline { ReplaceSpec } ")" newline ) .
ReplaceSpec = ModulePath [ Version ] "=>" FilePath newline
| ModulePath [ Version ] "=>" ModulePath Version newline .
FilePath = /* platform-specific relative or absolute file path */
Expand Down Expand Up @@ -725,7 +725,7 @@ appears above a block, it applies to all `retract` directives within the block
that don't have their own comments. A rationale comment may span multiple lines.

```
RetractDirective = "retract" ( RetractSpec | "(" newline { RetractSpec } ")" ) .
RetractDirective = "retract" ( RetractSpec | "(" newline { RetractSpec } ")" newline ) .
RetractSpec = ( Version | "[" Version "," Version "]" ) newline .
```

Expand Down

0 comments on commit 0cf64a4

Please sign in to comment.