]> Cypherpunks repositories - gostls13.git/commit
go/doc: use correct escaper for URL
authorRuss Cox <rsc@golang.org>
Wed, 25 Aug 2010 15:00:38 +0000 (11:00 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Aug 2010 15:00:38 +0000 (11:00 -0400)
commitb0729cdfe59835a697187f0ed3a70add2538779b
tree68d590a9bbeab383c0edca7a3c53d6c827480c15
parent218afb8fbd8b34f7a9d2a0901d827b6ac14cbe7d
go/doc: use correct escaper for URL

Despite the name, URL escaping is for a small subpiece of the URL only.
This particular URL is being emitted in an <a href=""> tag and in that
context it should be HTML escaped, not URL escaped.

In addition to fixing a bug, this change cuts a dependency chain
from go/doc to net, clearing the way for use of cgo
(which imports go/doc) during the compilation of package net.

R=gri
CC=golang-dev
https://golang.org/cl/1960050
src/pkg/go/doc/comment.go