From 86235d5dd7b2dbbe3ec94f48276af96c7ed78a5a Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Mon, 29 Feb 2016 22:01:38 -0800 Subject: [PATCH] go/constant: fix typos in MakeFromLiteral docs Change-Id: I99c737415a082df883a9c12cdb43bdd5a1b9a8ad Reviewed-on: https://go-review.googlesource.com/20082 Reviewed-by: Brad Fitzpatrick --- src/go/constant/value.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/go/constant/value.go b/src/go/constant/value.go index 1b0938dda4..ab10ae3299 100644 --- a/src/go/constant/value.go +++ b/src/go/constant/value.go @@ -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 { -- 2.48.1