From ff2a66f350cefa5c93a634eadb5d25bb60c85a9c Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 26 Jan 2018 09:34:12 +0100 Subject: [PATCH] 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 --- unix/syscall_unix.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/unix/syscall_unix.go b/unix/syscall_unix.go index 950cfa81..cd8f3a9c 100644 --- a/unix/syscall_unix.go +++ b/unix/syscall_unix.go @@ -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 {