Skip to content

Commit 7e05426

Browse files
jnjackinsrobpike
authored andcommitted
doc: various typos, remove apostrophes from ordinals
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5845059
1 parent 6a05440 commit 7e05426

5 files changed

+7
-7
lines changed

doc/code.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ <h3>Building a package</h3>
245245
</pre>
246246

247247
<p>
248-
The resulting workspace directory tree (assuimg we're running Linux on a 64-bit
248+
The resulting workspace directory tree (assuming we're running Linux on a 64-bit
249249
system) looks like this:
250250
</p>
251251

doc/debugging_with_gdb.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ <h3 id="Inspecting_the_stack">Inspecting the stack</h3>
351351
</pre>
352352

353353
<p>
354-
That <code>struct hchan<*testing.T></code> is the runtime-internal represntation of a channel. It is currently empty, or gdb would have pretty-printed it's contents.
354+
That <code>struct hchan<*testing.T></code> is the runtime-internal representation of a channel. It is currently empty, or gdb would have pretty-printed it's contents.
355355
</p>
356356

357357
<p>

doc/gccgo_install.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ <h3 id="Function_names">Function names</h3>
342342
</pre>
343343

344344
<p>
345-
The C function naturally expects a nul terminated string, which in
345+
The C function naturally expects a NUL-terminated string, which in
346346
Go is equivalent to a pointer to an array (not a slice!) of
347347
<code>byte</code> with a terminating zero byte. So a sample call
348348
from Go would look like (after importing the <code>os</code> package):

doc/go_mem.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ <h3>Locks</h3>
283283

284284
<p class="rule">
285285
For any <code>sync.Mutex</code> or <code>sync.RWMutex</code> variable <code>l</code> and <i>n</i> &lt; <i>m</i>,
286-
the <i>n</i>'th call to <code>l.Unlock()</code> happens before the <i>m</i>'th call to <code>l.Lock()</code> returns.
286+
call <i>n</i> of <code>l.Unlock()</code> happens before call <i>m</i> of <code>l.Lock()</code> returns.
287287
</p>
288288

289289
<p>
@@ -316,9 +316,9 @@ <h3>Locks</h3>
316316

317317
<p class="rule">
318318
For any call to <code>l.RLock</code> on a <code>sync.RWMutex</code> variable <code>l</code>,
319-
there is an <i>n</i> such that the <code>l.RLock</code> happens (returns) after the <i>n</i>'th call to
319+
there is an <i>n</i> such that the <code>l.RLock</code> happens (returns) after call <i>n</i> to
320320
<code>l.Unlock</code> and the matching <code>l.RUnlock</code> happens
321-
before the <i>n</i>+1'th call to <code>l.Lock</code>.
321+
before call <i>n</i>+1 to <code>l.Lock</code>.
322322
</p>
323323

324324
<h3>Once</h3>

doc/go_spec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h2 id="Notation">Notation</h2>
7575
<p>
7676
The form <code>a … b</code> represents the set of characters from
7777
<code>a</code> through <code>b</code> as alternatives. The horizontal
78-
ellipis <code></code> is also used elsewhere in the spec to informally denote various
78+
ellipsis <code></code> is also used elsewhere in the spec to informally denote various
7979
enumerations or code snippets that are not further specified. The character <code></code>
8080
(as opposed to the three characters <code>...</code>) is not a token of the Go
8181
language.

0 commit comments

Comments
 (0)