From: Charles L. Dorian Date: Tue, 1 Nov 2011 06:13:33 +0000 (+0900) Subject: doc: fix typo in spec example code comment X-Git-Tag: weekly.2011-11-01~7 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=44262d157425c396f913b88c81b27f13dd30cff7;p=gostls13.git doc: fix typo in spec example code comment R=r, golang-dev, adg CC=golang-dev https://golang.org/cl/5308071 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index c09d7d3a2a..ad13ca244a 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -191,7 +191,7 @@ token is
  • an identifier
  • - +
  • an integer, floating-point, @@ -199,14 +199,14 @@ token is character, or string literal
  • - +
  • one of the keywords break, continue, fallthrough, or return
  • - +
  • one of the operators and delimiters ++, --, @@ -1237,7 +1237,7 @@ make(chan int, 100)

    The capacity, in number of elements, sets the size of the buffer in the channel. If the -capacity is greater than zero, the channel is asynchronous: communication operations +capacity is greater than zero, the channel is asynchronous: communication operations succeed without blocking if the buffer is not full (sends) or not empty (receives), and elements are received in the order they are sent. If the capacity is zero or absent, the communication succeeds only when both a sender and @@ -4326,7 +4326,7 @@ func complex_f3() (re float64, im float64) { func (devnull) Write(p []byte) (n int, _ os.Error) { n = len(p) return -} +}

  • @@ -4441,7 +4441,7 @@ L1:

    -is erroneous because the label L1 is inside +is erroneous because the label L1 is inside the "for" statement's block but the goto is not.

    @@ -4801,7 +4801,7 @@ var rl = real(c64) // float32

    Two built-in functions, panic and recover, assist in reporting and handling run-time panics -and program-defined error conditions. +and program-defined error conditions.

    @@ -4851,7 +4851,7 @@ run-time panics raised by g.
     
     func protect(g func()) {
     	defer func() {
    -		log.Println("done")  // Println executes normally even in there is a panic
    +		log.Println("done")  // Println executes normally even if there is a panic
     		if x := recover(); x != nil {
     			log.Printf("run time panic: %v", x)
     		}
    @@ -5145,7 +5145,7 @@ A complete program is created by linking a single, unimported package
     called the main package with all the packages it imports, transitively.
     The main package must
     have package name main and
    -declare a function main that takes no 
    +declare a function main that takes no
     arguments and returns no value.
     

    @@ -5161,7 +5161,7 @@ It does not wait for other (non-main) goroutines to complete.

    -Package initialization—variable initialization and the invocation of +Package initialization—variable initialization and the invocation of init functions—happens in a single goroutine, sequentially, one package at a time. An init function may launch other goroutines, which can run