mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 06:46:44 -04:00
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/90095 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
0346725895
commit
ff2a66f350
@@ -50,8 +50,7 @@ func errnoErr(e syscall.Errno) error {
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
// clen returns the index of the first NULL byte in n or len(n) if n contains no
|
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
|
||||||
// NULL byte or len(n) if n contains no NULL byte
|
|
||||||
func clen(n []byte) int {
|
func clen(n []byte) int {
|
||||||
for i := 0; i < len(n); i++ {
|
for i := 0; i < len(n); i++ {
|
||||||
if n[i] == 0 {
|
if n[i] == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user