diff --git a/doc/go_spec.html b/doc/go_spec.html index cc01494ff5..9f29989d05 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -2090,7 +2090,7 @@ Receiver = Parameters .
-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 T or *T (possibly using
parentheses) where T is a type name. The type denoted by T is called
diff --git a/src/go/types/typexpr.go b/src/go/types/typexpr.go
index 1160e9c511..dd0e8b028c 100644
--- a/src/go/types/typexpr.go
+++ b/src/go/types/typexpr.go
@@ -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) {