]> Cypherpunks repositories - gostls13.git/commit
text/template/parse: remove duplication in peekNonSpace
authorAriel Mashraki <ariel@mashraki.co.il>
Tue, 1 Oct 2019 18:12:59 +0000 (21:12 +0300)
committerRob Pike <r@golang.org>
Tue, 1 Oct 2019 20:30:37 +0000 (20:30 +0000)
commit93a79bbcc0de229679ddeb2ad662ec8cea5b3de6
treee645a1509e2dc50631886b5a2584b0cb858b20d6
parent86cd6c2ee5c5e4c5b5edf4ea8d1c85f80d9706a8
text/template/parse: remove duplication in peekNonSpace

nextNonSpace has an identical code except the call to
backup at the end.

Change-Id: Iefa5b13950007da38323a800fb6b0ce3d436254b
Reviewed-on: https://go-review.googlesource.com/c/go/+/198277
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/text/template/parse/parse.go