]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: rename Nconv to nconv
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 6 Nov 2016 19:09:09 +0000 (11:09 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 14 Mar 2017 01:18:32 +0000 (01:18 +0000)
For consistency.

Change-Id: Ic687fea95f7a4a3be576945af3e9c97086309b07
Reviewed-on: https://go-review.googlesource.com/38142
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/fmt.go

index 7b4559bbd0dfd04bd5df770647c7d5cb78face8d..3c6c47fe8e413810c6f706e40154828b2323aa91 100644 (file)
@@ -256,7 +256,7 @@ var classnames = []string{
 func (n *Node) Format(s fmt.State, verb rune) {
        switch verb {
        case 'v', 'S', 'L':
-               n.Nconv(s, fmtFlag(s, verb))
+               n.nconv(s, fmtFlag(s, verb))
 
        case 'j':
                n.jconv(s, fmtFlag(s, verb))
@@ -1731,7 +1731,7 @@ func (n *Node) String() string {
 
 // "%L"  suffix with "(type %T)" where possible
 // "%+S" in debug mode, don't recurse, no multiline output
-func (n *Node) Nconv(s fmt.State, flag FmtFlag) {
+func (n *Node) nconv(s fmt.State, flag FmtFlag) {
        if n == nil {
                fmt.Fprint(s, "<N>")
                return