]> Cypherpunks repositories - gostls13.git/commit
fmt: in Scanf, %c can scan a space, so don't skip spaces at %c
authorRob Pike <r@golang.org>
Sun, 23 Aug 2015 07:45:58 +0000 (17:45 +1000)
committerRob Pike <r@golang.org>
Mon, 24 Aug 2015 20:25:07 +0000 (20:25 +0000)
commitb1eec186f282f3852cb5e35c1726374507a3321b
tree531cbc9cc4706de95049f6f990021c8293b5728a
parent47bdda649695052be099e3249977fc7e5e02cf81
fmt: in Scanf, %c can scan a space, so don't skip spaces at %c

In short, %c should just give you the next rune, period.
Apparently this is the design. I use the term loosely.

Fixes #12275

Change-Id: I6f30bed442c0e88eac2244d465c7d151b29cf393
Reviewed-on: https://go-review.googlesource.com/13821
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/fmt/scan.go
src/fmt/scan_test.go