Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_content/doc: fix typos in mod.md #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions _content/doc/mod.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ retractions from `v1.0.1`, which is now the highest version. Both `v1.0.0` and
the next highest version, perhaps `v0.9.5`.

`retract` directives may be written with either a single version (like `v1.0.0`)
or with a closed inteval of versions with an upper and lower bound, delimited by
or with a closed interval of versions with an upper and lower bound, delimited by
`[` and `]` (like `[v1.1.0, v1.2.0]`). A single version is equivalent to an
interval where the upper and lower bound are the same. Like other directives,
multiple `retract` directives may be grouped together in a block delimited by
Expand Down Expand Up @@ -728,7 +728,7 @@ in `go.mod` files of dependencies.
### Automatic updates {#go-mod-file-updates}

Most commands report an error if `go.mod` is missing information or doesn't
accurately relect reality. The [`go get`](#go-get) and
accurately reflect reality. The [`go get`](#go-get) and
[`go mod tidy`](#go-mod-tidy) commands may be used to fix most of these
problems. Additionally, the `-mod=mod` flag may be used with most module-aware
commands (`go build`, `go test`, and so on) to instruct the `go` command to
Expand Down Expand Up @@ -817,14 +817,14 @@ require C 1.3 and C 1.4, respectively. C 1.3 and C 1.4 both require D 1.2.

MVS visits and loads the `go.mod` file for each of the module versions
highlighted in blue. At the end of the graph traversal, MVS returns a build list
containing the bolded versions: A 1.2, B 1.2, C 1.4, and D 1.2. Note that higher
containing the boldface versions: A 1.2, B 1.2, C 1.4, and D 1.2. Note that higher
versions of B and D are available but MVS does not select them, since nothing
requires them.

### Replacement {#mvs-replace}

The content of a module (including its `go.mod` file) may be replaced using a
[`replace` directive](#go-mod-file-replace) in the the main module's `go.mod` file.
[`replace` directive](#go-mod-file-replace) in the main module's `go.mod` file.
A `replace` directive may apply to a specific version of a module or to all
versions of a module.

Expand Down Expand Up @@ -1357,7 +1357,7 @@ $ go list -m -json example.com/m@latest

The `-m` flag causes `go list` to list modules instead of packages. In this
mode, the arguments to `go list` may be modules, module patterns (containing the
`...` wildcard), [version queries](#version-queries), or the special pattern
`...` wild card), [version queries](#version-queries), or the special pattern
`all`, which matches all modules in the [build list](#glos-build-list). If no
arguments are specified, the [main module](#glos-main-module) is listed.

Expand Down Expand Up @@ -1557,9 +1557,9 @@ The editing flags specify a sequence of editing operations.
version is dropped.
* The `-retract=version` and `-dropretract=version` flags add and drop a
retraction for the given version, which may be a single version (like
`v1.2.3`) or an internval (like `[v1.1.0,v1.2.0]`). Note that the `-retract`
`v1.2.3`) or an interval (like `[v1.1.0,v1.2.0]`). Note that the `-retract`
flag cannot add a rationale comment for the `retract` directive. Rationale
comments are recommeneded and may be shown by `go list -m -u` and other
comments are recommended and may be shown by `go list -m -u` and other
commands.

The editing flags may be repeated. The changes are applied in the order given.
Expand Down