1
0
mirror of https://github.com/golang/go synced 2024-11-19 16:14:49 -07:00
go/src/encoding
Joe Tsai b53088a634 Revert "go/printer: forbid empty line before first comment in block"
This reverts commit 08f19bbde1.

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>
2017-12-01 01:12:26 +00:00
..
ascii85 encoding/ascii85: make bigtest big again 2017-06-23 14:28:30 +00:00
asn1 encoding/asn1: support Unmarshaling NumericString 2017-11-25 17:08:32 +00:00
base32 Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
base64 encoding/base64: optimize DecodeString 2017-10-09 15:39:51 +00:00
binary encoding/binary: make new example a bit more idiomatic 2017-11-15 21:26:43 +00:00
csv encoding/csv: restore Go 1.9 quoted \r\n handling in Reader 2017-11-16 16:29:37 +00:00
gob encoding/gob: fix a typo in the package documentation 2017-10-08 18:11:32 +00:00
hex encoding/hex: make Decode, Decoder, DecodeString agree about partial results and errors 2017-11-16 01:08:20 +00:00
json encoding/json: remove the word "text" in "JSON text" from package docs. 2017-11-27 18:51:36 +00:00
pem encoding/pem: add Encode example 2017-11-15 03:08:55 +00:00
xml encoding/xml: move unexported const out of exported const block 2017-11-15 21:27:07 +00:00
encoding.go