1
0
mirror of https://github.com/golang/go synced 2024-11-25 23:58:02 -07:00

all: more typos

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5720044
This commit is contained in:
Robert Griesemer 2012-03-02 11:15:45 -08:00
parent a3caf073a5
commit de7361bf98
5 changed files with 6 additions and 6 deletions

View File

@ -992,7 +992,7 @@ func relPaths(paths []string) []string {
var errPrintedOutput = errors.New("already printed output - no need to show error") var errPrintedOutput = errors.New("already printed output - no need to show error")
// run runs the command given by cmdline in the directory dir. // run runs the command given by cmdline in the directory dir.
// If the commnd fails, run prints information about the failure // If the command fails, run prints information about the failure
// and returns a non-nil error. // and returns a non-nil error.
func (b *builder) run(dir, shortenDir string, desc string, cmdargs ...interface{}) error { func (b *builder) run(dir, shortenDir string, desc string, cmdargs ...interface{}) error {
out, err := b.runOut(dir, desc, cmdargs...) out, err := b.runOut(dir, desc, cmdargs...)

View File

@ -7,7 +7,7 @@
package ecdsa package ecdsa
// References: // References:
// [NSA]: Suite B implementor's guide to FIPS 186-3, // [NSA]: Suite B implementer's guide to FIPS 186-3,
// http://www.nsa.gov/ia/_files/ecdsa.pdf // http://www.nsa.gov/ia/_files/ecdsa.pdf
// [SECG]: SECG, SEC1 // [SECG]: SECG, SEC1
// http://www.secg.org/download/aid-780/sec1-v2.pdf // http://www.secg.org/download/aid-780/sec1-v2.pdf

View File

@ -52,7 +52,7 @@ type parser struct {
// Non-syntactic parser control // Non-syntactic parser control
exprLev int // < 0: in control clause, >= 0: in expression exprLev int // < 0: in control clause, >= 0: in expression
// Ordinary identifer scopes // Ordinary identifier scopes
pkgScope *ast.Scope // pkgScope.Outer == nil pkgScope *ast.Scope // pkgScope.Outer == nil
topScope *ast.Scope // top-most scope; may be pkgScope topScope *ast.Scope // top-most scope; may be pkgScope
unresolved []*ast.Ident // unresolved identifiers unresolved []*ast.Ident // unresolved identifiers

View File

@ -178,7 +178,7 @@ func (w *PipeWriter) CloseWithError(err error) error {
// It is safe to call Read and Write in parallel with each other or with // It is safe to call Read and Write in parallel with each other or with
// Close. Close will complete once pending I/O is done. Parallel calls to // Close. Close will complete once pending I/O is done. Parallel calls to
// Read, and parallel calls to Write, are also safe: // Read, and parallel calls to Write, are also safe:
// the invidual calls will be gated sequentially. // the individual calls will be gated sequentially.
func Pipe() (*PipeReader, *PipeWriter) { func Pipe() (*PipeReader, *PipeWriter) {
p := new(pipe) p := new(pipe)
p.rwait.L = &p.l p.rwait.L = &p.l

View File

@ -71,13 +71,13 @@ func StringSlicePtr(ss []string) []*byte {
return bb return bb
} }
// gbit16 reads a 16-bit numeric value from a 9P protocol message strored in b, // gbit16 reads a 16-bit numeric value from a 9P protocol message stored in b,
// returning the value and the remaining slice of b. // returning the value and the remaining slice of b.
func gbit16(b []byte) (uint16, []byte) { func gbit16(b []byte) (uint16, []byte) {
return uint16(b[0]) | uint16(b[1])<<8, b[2:] return uint16(b[0]) | uint16(b[1])<<8, b[2:]
} }
// gstring reads a string from a 9P protocol message strored in b, // gstring reads a string from a 9P protocol message stored in b,
// returning the value as a Go string and the remaining slice of b. // returning the value as a Go string and the remaining slice of b.
func gstring(b []byte) (string, []byte) { func gstring(b []byte) (string, []byte) {
n, b := gbit16(b) n, b := gbit16(b)