]> Cypherpunks repositories - gostls13.git/commit
godoc: fix ToAbsolute mapping
authorRobert Griesemer <gri@golang.org>
Tue, 18 Oct 2011 17:28:30 +0000 (10:28 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 18 Oct 2011 17:28:30 +0000 (10:28 -0700)
commit0e4d1c3e2cae6474a0b01a79c37b440817cbfa5f
tree8c26f0e9e22e9eae83b46fabe009f4e2373021ed
parent9d99d52fcb898433d58c861bd942b2caec22c16f
godoc: fix ToAbsolute mapping

The implementation of splitFirst was broken;
splitFirst("foo/") must be the same as splitFirst("foo").
As a result, ToAbsolute could be simplified, and as a side
effect this fixes a long-standing bug.

Thanks to Luca Greco <luca.greco@alcacoop.it> for doing
the investigation.

Fixes #1157.

R=rsc
CC=golang-dev
https://golang.org/cl/5278050
src/cmd/godoc/mapping.go