From: Ian Lance Taylor Date: Tue, 14 Jul 2015 15:14:03 +0000 (-0700) Subject: doc/go1.5.html: fix typo. X-Git-Tag: go1.5beta2~72 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=443ec4f44deea0bd85d77ee6703eca2a8f317cec;p=gostls13.git doc/go1.5.html: fix typo. Fixes #11704. Change-Id: If103f8eca7e53b0120885e2ec086db12176ea078 Reviewed-on: https://go-review.googlesource.com/12155 Reviewed-by: Brad Fitzpatrick --- diff --git a/doc/go1.5.html b/doc/go1.5.html index c54d4ce316..3b8d34a496 100644 --- a/doc/go1.5.html +++ b/doc/go1.5.html @@ -938,7 +938,7 @@ value to RGBA has become more precise. Previously, the low 8 bits were just an echo of the high 8 bits; now they contain more accurate information. Because of the echo property of the old code, the operation -uint8(r) to extract an 8-bit red vaue worked, but is incorrect. +uint8(r) to extract an 8-bit red value worked, but is incorrect. In Go 1.5, that operation may yield a different value. The correct code is, and always was, to select the high 8 bits: uint8(r>>8).