Commit 86235d5d authored by Matthew Dempsky's avatar Matthew Dempsky

go/constant: fix typos in MakeFromLiteral docs

Change-Id: I99c737415a082df883a9c12cdb43bdd5a1b9a8ad
Reviewed-on: https://go-review.googlesource.com/20082Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 35dd2ed5
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment