]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: fix handling of paths like ./fmt
authorRob Pike <r@golang.org>
Wed, 20 May 2015 20:26:02 +0000 (13:26 -0700)
committerRob Pike <r@golang.org>
Wed, 20 May 2015 20:53:14 +0000 (20:53 +0000)
commit8401b19e7e6bf60d66b2d71cd3fa2215c4649d31
tree9247e6b21a3bddc05609c3ebc90ceeb6890338b2
parent197aa9e64ddcd1cdcb5f4843413da935a954d9f3
cmd/doc: fix handling of paths like ./fmt

An error in string slice offsets caused the loop to run forever if the
first character in the argument was a period.

Fixes #10833.

Change-Id: Iefb6aac5cff8864fe93d08e2600cb07d82c6f6df
Reviewed-on: https://go-review.googlesource.com/10285
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/doc/main.go