From 3549178e551e359200dc4fd162f14b848ad65b31 Mon Sep 17 00:00:00 2001 From: Paolo Martini Date: Fri, 17 Jul 2015 17:26:08 +0200 Subject: [PATCH] doc: fix typo 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 --- doc/go_spec.html | 2 +- src/go/types/typexpr.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.50.0