]> Cypherpunks repositories - gostls13.git/commitdiff
doc: fix typo
authorPaolo Martini <mrtnpaolo@gmail.com>
Fri, 17 Jul 2015 15:26:08 +0000 (17:26 +0200)
committerIan Lance Taylor <iant@golang.org>
Fri, 17 Jul 2015 22:33:51 +0000 (22:33 +0000)
The document `doc/go_spec.html` uses "preceeding" instead of the word
"preceding" in one place.

Fixed another occurrence in `src/go/types/typexpr.go`.

Change-Id: Ic67f62026b5c9d002c5c5632299f14ecac8b02ae
Reviewed-on: https://go-review.googlesource.com/12354
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go_spec.html
src/go/types/typexpr.go

index cc01494ff5168fc979db1051657b6cbedda473bd..9f29989d052925d278680f58ff6793b57bc48a0a 100644 (file)
@@ -2090,7 +2090,7 @@ Receiver     = Parameters .
 </pre>
 
 <p>
-The receiver is specified via an extra parameter section preceeding the method
+The receiver is specified via an extra parameter section preceding the method
 name. That parameter section must declare a single parameter, the receiver.
 Its type must be of the form <code>T</code> or <code>*T</code> (possibly using
 parentheses) where <code>T</code> is a type name. The type denoted by <code>T</code> is called
index 1160e9c511c058f7bfacfc31bd341c45acc51263..dd0e8b028c0aebeb739004c4f865eafa1e009779 100644 (file)
@@ -151,7 +151,7 @@ func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast
 
        if recvPar != nil {
                // recv parameter list present (may be empty)
-               // spec: "The receiver is specified via an extra parameter section preceeding the
+               // spec: "The receiver is specified via an extra parameter section preceding the
                // method name. That parameter section must declare a single parameter, the receiver."
                var recv *Var
                switch len(recvList) {