aboutsummaryrefslogtreecommitdiff
path: root/src/unicode
diff options
context:
space:
mode:
authorJoe Tsai <thebrokentoaster@gmail.com>2017-12-01 00:59:45 +0000
committerJoe Tsai <joetsai@google.com>2017-12-01 01:12:26 +0000
commitb53088a63436ac49d2344a733a50d529b5f7244e (patch)
tree9aeacef6839fd1e6c8ad28be2b3cb45756f6a19f /src/unicode
parent206568566473e9a91c05b8b0153d27ecbee466b7 (diff)
downloadgo-b53088a63436ac49d2344a733a50d529b5f7244e.tar.gz
go-b53088a63436ac49d2344a733a50d529b5f7244e.zip
Revert "go/printer: forbid empty line before first comment in block"
This reverts commit 08f19bbde1b01227fdc2fa2d326e4029bb74dd96. Reason for revert: The changed transformation takes effect on a larger set of code snippets than expected. For example, this: func foo() { // Comment bar() } becomes: func foo() { // Comment bar() } This is an unintended consequence. Change-Id: Ifca88d6267dab8a8170791f7205124712bf8ace8 Reviewed-on: https://go-review.googlesource.com/81335 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Joe Tsai <joetsai@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/unicode')
-rw-r--r--src/unicode/example_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unicode/example_test.go b/src/unicode/example_test.go
index a60dae4458..50c5b18a48 100644
--- a/src/unicode/example_test.go
+++ b/src/unicode/example_test.go
@@ -12,6 +12,7 @@ import (
// Functions starting with "Is" can be used to inspect which table of range a
// rune belongs to. Note that runes may fit into more than one range.
func Example_is() {
+
// constant with mixed type runes
const mixed = "\b5Ὂg̀9! ℃ᾭG"
for _, c := range mixed {