From: Jeremy Jackins Date: Sun, 18 Mar 2012 21:26:36 +0000 (+1100) Subject: doc: various typos, remove apostrophes from ordinals X-Git-Tag: weekly.2012-03-22~49 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7e054266c94462be87277367ec59f1d27ed78ab0;p=gostls13.git doc: various typos, remove apostrophes from ordinals R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5845059 --- diff --git a/doc/code.html b/doc/code.html index 768a9995a2..238cb06433 100644 --- a/doc/code.html +++ b/doc/code.html @@ -245,7 +245,7 @@ $ go install

-The resulting workspace directory tree (assuimg we're running Linux on a 64-bit +The resulting workspace directory tree (assuming we're running Linux on a 64-bit system) looks like this:

diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html index 43977b7772..51b650b18c 100644 --- a/doc/debugging_with_gdb.html +++ b/doc/debugging_with_gdb.html @@ -351,7 +351,7 @@ $3 = struct hchan<*testing.T>

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

diff --git a/doc/gccgo_install.html b/doc/gccgo_install.html index ae359437a6..e769c2211b 100644 --- a/doc/gccgo_install.html +++ b/doc/gccgo_install.html @@ -342,7 +342,7 @@ func c_open(name *byte, mode int, perm int) int __asm__ ("open");

-The C function naturally expects a nul terminated string, which in +The C function naturally expects a NUL-terminated string, which in Go is equivalent to a pointer to an array (not a slice!) of byte with a terminating zero byte. So a sample call from Go would look like (after importing the os package): diff --git a/doc/go_mem.html b/doc/go_mem.html index d4f3656bf0..ece230638e 100644 --- a/doc/go_mem.html +++ b/doc/go_mem.html @@ -283,7 +283,7 @@ The sync package implements two lock data types,

For any sync.Mutex or sync.RWMutex variable l and n < m, -the n'th call to l.Unlock() happens before the m'th call to l.Lock() returns. +call n of l.Unlock() happens before call m of l.Lock() returns.

@@ -316,9 +316,9 @@ which happens before the print.

For any call to l.RLock on a sync.RWMutex variable l, -there is an n such that the l.RLock happens (returns) after the n'th call to +there is an n such that the l.RLock happens (returns) after call n to l.Unlock and the matching l.RUnlock happens -before the n+1'th call to l.Lock. +before call n+1 to l.Lock.

Once

diff --git a/doc/go_spec.html b/doc/go_spec.html index 9d3ff87b11..2c905c723b 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -75,7 +75,7 @@ double quotes "" or back quotes ``.

The form a … b represents the set of characters from a through b as alternatives. The horizontal -ellipis … is also used elsewhere in the spec to informally denote various +ellipsis … is also used elsewhere in the spec to informally denote various enumerations or code snippets that are not further specified. The character … (as opposed to the three characters ...) is not a token of the Go language.