]> Cypherpunks repositories - gostls13.git/commitdiff
go/constant: fix typos in MakeFromLiteral docs
authorMatthew Dempsky <mdempsky@google.com>
Tue, 1 Mar 2016 06:01:38 +0000 (22:01 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 1 Mar 2016 06:04:27 +0000 (06:04 +0000)
Change-Id: I99c737415a082df883a9c12cdb43bdd5a1b9a8ad
Reviewed-on: https://go-review.googlesource.com/20082
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/constant/value.go

index 1b0938dda46a0a7fc42aac351fb94ec50c9030fe..ab10ae32998c9966fa2e8741b6e32ad029a63612 100644 (file)
@@ -308,8 +308,8 @@ func MakeFloat64(x float64) Value {
 
 // MakeFromLiteral returns the corresponding integer, floating-point,
 // imaginary, character, or string value for a Go literal string. The
-// tok value must be one of token.INT, token.FLOAT, toke.IMAG, token.
-// CHAR, or token.STRING. The final argument must be zero.
+// tok value must be one of token.INT, token.FLOAT, token.IMAG,
+// token.CHAR, or token.STRING. The final argument must be zero.
 // If the literal string syntax is invalid, the result is an Unknown.
 func MakeFromLiteral(lit string, tok token.Token, zero uint) Value {
        if zero != 0 {