go/src/fmt
Rob Pike 4f70c151db fmt: fix handling of %% verb in Scanf
There were a couple of bugs, including not requiring a percent and
returning the wrong error for a bad format containing %%.

Both are addressed by fixing the first.

Fixes #34180.

Change-Id: If96c0c0258bcb95eec49871437d719cb9d399d9b
Reviewed-on: https://go-review.googlesource.com/c/go/+/202879
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2019-10-25 04:15:59 +00:00
..
doc.go errors, fmt: revert rejected changes for Go 1.13 2019-05-15 19:53:15 +00:00
errors.go fmt: fix typo in errors.go 2019-06-27 04:16:38 +00:00
errors_test.go cmd: update x/tools version to enforce only one %w 2019-09-27 21:17:15 +00:00
example_test.go fmt: fix spelling mistake in example 2019-03-25 21:03:10 +00:00
export_test.go
fmt_test.go fmt: format 0b, 0o prefixes in %#b and %O 2019-02-26 05:16:56 +00:00
format.go errors, fmt: revert rejected changes for Go 1.13 2019-05-15 19:53:15 +00:00
gostringer_example_test.go
print.go fmt: always clear wrapErrs 2019-05-23 06:16:38 +00:00
scan.go fmt: fix handling of %% verb in Scanf 2019-10-25 04:15:59 +00:00
scan_test.go fmt: fix handling of %% verb in Scanf 2019-10-25 04:15:59 +00:00
stringer_example_test.go
stringer_test.go