]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: improve godoc formatting of memclrNoHeapPointers comment
authorIan Lance Taylor <iant@golang.org>
Mon, 26 Nov 2018 20:11:34 +0000 (12:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Nov 2018 23:42:43 +0000 (23:42 +0000)
Fixes #28955

Change-Id: I738ad0c76f7bf8fc504a48cf55d3becd5ed7a9d6
Reviewed-on: https://go-review.googlesource.com/c/151337
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/stubs.go

index bb4fd2cc832c6ba2412edf1e46d54d4edb64b1bb..0d5503a6f52a7f6d070719c2a295d24a24fb91f0 100644 (file)
@@ -68,12 +68,12 @@ func badsystemstack() {
 // used only when the caller knows that *ptr contains no heap pointers
 // because either:
 //
-// 1. *ptr is initialized memory and its type is pointer-free.
+// *ptr is initialized memory and its type is pointer-free, or
 //
-// 2. *ptr is uninitialized memory (e.g., memory that's being reused
-//    for a new allocation) and hence contains only "junk".
+// *ptr is uninitialized memory (e.g., memory that's being reused
+// for a new allocation) and hence contains only "junk".
 //
-// in memclr_*.s
+// The (CPU-specific) implementations of this function are in memclr_*.s.
 //go:noescape
 func memclrNoHeapPointers(ptr unsafe.Pointer, n uintptr)