]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: move unexported const out of exported const block
authorRuss Cox <rsc@golang.org>
Tue, 14 Nov 2017 19:01:11 +0000 (14:01 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 15 Nov 2017 21:27:07 +0000 (21:27 +0000)
commit894869e1508d3b6a8e6bbbdbb7603cdd77d23162
tree1d9c7551bd77c0ae186742bd0085eb36f482333b
parentc4c3f2a1f2d9ee0735aba1583bb2a3301ec790d3
encoding/xml: move unexported const out of exported const block

CL 58210 introduced this constant for reasons I don't understand.
It should not be in the exported const block, which will pollute
godoc output with a "... unexported" notice.

Also since we already have a constant named xmlnsPrefix for "xmlns",
it is very confusing to also have xmlNamespacePrefix for "xml".
If we must have the constant at all, rename it to xmlPrefix.

Change-Id: I15f937454d730005816fcd32b1acca703acf1e51
Reviewed-on: https://go-review.googlesource.com/78121
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/xml/marshal.go
src/encoding/xml/xml.go