]> Cypherpunks repositories - gostls13.git/commit
fmt: fix bug in scanning of hex strings
authorRob Pike <r@golang.org>
Mon, 15 Dec 2014 00:52:06 +0000 (09:52 +0900)
committerRob Pike <r@golang.org>
Mon, 22 Dec 2014 04:08:32 +0000 (04:08 +0000)
commitf3c85c507bf9d42c5bd7e3c22919f3e0b7946bb7
treeca7b5caa1a28d0da342fe2aa3e6848cbd32061d7
parent79a4a779a7c2d90509ac05d31c959b7c9d7147de
fmt: fix bug in scanning of hex strings
Couldn't handle a hex string terminated by anything
other than spaces. Easy to fix.

Fixes #9124.

Change-Id: I18f89a0bd99a105c9110e1ede641873bf9daf3af
Reviewed-on: https://go-review.googlesource.com/1538
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/fmt/fmt_test.go
src/fmt/scan.go
src/fmt/scan_test.go