Skip to content

Commit

Permalink
doc/go1.18: fix a few small typos, add a few commas
Browse files Browse the repository at this point in the history
Updates #47694

Change-Id: I6c1c3698fdd55fe83c756f28776d1d26dba0a9df
Reviewed-on: https://go-review.googlesource.com/c/go/+/386974
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
ALTree committed Feb 21, 2022
1 parent 851ecea commit c9fe126
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/go1.18.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h3 id="generics">Generics</h3>
</li>
<li><!-- https://golang.org/issue/49030 -->
Embedding a type parameter, or a pointer to a type parameter, as
an unnamed field in a struct type is not permitted. Similarly
an unnamed field in a struct type is not permitted. Similarly,
embedding a type parameter in an interface type is not permitted.
Whether these will ever be permitted is unclear at present.
</li>
Expand Down Expand Up @@ -275,7 +275,7 @@ <h4 id="go-version"><code>go</code> <code>version</code></h4>

<p><!-- golang.org/issue/37475 -->
The <code>go</code> command now embeds version control information in
binaries including the currently checked-out revision, commit time, and a
binaries. It includes the currently checked-out revision, commit time, and a
flag indicating whether edited or untracked files are present. Version
control information is embedded if the <code>go</code> command is invoked in
a directory within a Git, Mercurial, Fossil, or Bazaar repository, and the
Expand All @@ -285,7 +285,7 @@ <h4 id="go-version"><code>go</code> <code>version</code></h4>
</p>

<p><!-- golang.org/issue/37475 -->
Additionally, the <code>go</code> command embeds information about the build
Additionally, the <code>go</code> command embeds information about the build,
including build and tool tags (set with <code>-tags</code>), compiler,
assembler, and linker flags (like <code>-gcflags</code>), whether cgo was
enabled, and if it was, the values of the cgo environment variables
Expand Down Expand Up @@ -509,7 +509,7 @@ <h2 id="compiler">Compiler</h2>
</p>

<p><!-- CL 298611 -->
The new compiler <code>-asan</code> option supports the
The new <code>-asan</code> compiler option supports the
new <code>go</code> command <code>-asan</code> option.
</p>

Expand Down Expand Up @@ -539,7 +539,7 @@ <h2 id="linker">Linker</h2>
</p>

<p><!-- CL 298610 -->
The new linker <code>-asan</code> option supports the
The new <code>-asan</code> linker option supports the
new <code>go</code> command <code>-asan</code> option.
</p>

Expand Down Expand Up @@ -680,8 +680,8 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
</p>

<p><!-- CL 345570 -->
The methods <a href="/pkg/bufio#Reader.Reset"><code>Reader.Reset</code></a> and
<a href="/pkg/bufio#Writer.Reset"><code>Writer.Reset</code></a>
The <a href="/pkg/bufio#Reader.Reset"><code>Reader.Reset</code></a> and
<a href="/pkg/bufio#Writer.Reset"><code>Writer.Reset</code></a> methods
now use the default buffer size when called on objects with a
<code>nil</code> buffer.
</p>
Expand Down Expand Up @@ -1043,7 +1043,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<dl id="os/user"><dt><a href="/pkg/os/user/">os/user</a></dt>
<dd>
<p><!-- CL 330753 -->
<a href="/pkg/os/user#User.GroupIds"><code>User.GroupIds</code></a>.
<a href="/pkg/os/user#User.GroupIds"><code>User.GroupIds</code></a>
now uses a Go native implementation when cgo is not available.
</p>
</dd>
Expand All @@ -1056,7 +1056,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<a href="/pkg/reflect/#Value.SetIterKey"><code>Value.SetIterKey</code></a>
and <a href="/pkg/reflect/#Value.SetIterValue"><code>Value.SetIterValue</code></a>
methods set a Value using a map iterator as the source. They are equivalent to
<code>Value.Set(iter.Key())</code> and <code>Value.Set(iter.Value())</code> but
<code>Value.Set(iter.Key())</code> and <code>Value.Set(iter.Value())</code>, but
do fewer allocations.
</p>

Expand Down Expand Up @@ -1219,7 +1219,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<dl id="syscall/js"><dt><a href="/pkg/syscall/js/">syscall/js</a></dt>
<dd>
<p><!-- CL 356430 -->
<code>Wrapper</code> interface has been removed.
The <code>Wrapper</code> interface has been removed.
</p>
</dd>
</dl><!-- syscall/js -->
Expand Down Expand Up @@ -1291,7 +1291,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
<dl id="unicode/utf8"><dt><a href="/pkg/unicode/utf8/">unicode/utf8</a></dt>
<dd>
<p><!-- CL 345571 -->
The <a href="/pkg/unicode/utf8/#AppendRune"><code>AppendRune</code></a> function appends the UTF-8 new
The new <a href="/pkg/unicode/utf8/#AppendRune"><code>AppendRune</code></a> function appends the UTF-8
encoding of a <code>rune</code> to a <code>[]byte</code>.
</p>
</dd>
Expand Down

0 comments on commit c9fe126

Please sign in to comment.