Commit ff2a66f3 authored by Tobias Klauser's avatar Tobias Klauser Committed by Brad Fitzpatrick

unix: fix godoc comment for clen

The second part of the godoc sentence appears twice.

Change-Id: I119c7119ff50401eed3d7369a7709d8c779a7f9e
Reviewed-on: https://go-review.googlesource.com/90095Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 03467258
......@@ -50,8 +50,7 @@ func errnoErr(e syscall.Errno) error {
return e
}
// clen returns the index of the first NULL byte in n or len(n) if n contains no
// NULL byte or len(n) if n contains no NULL byte
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
func clen(n []byte) int {
for i := 0; i < len(n); i++ {
if n[i] == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment