Skip to content

Commit 969bea8

Browse files
cuishuanggopherbot
authored andcommitted
runtime: fix a few function names on comments
Change-Id: I9ef4898d68dfd06618c0bd8e23f81a1d2c77a836 Signed-off-by: cui fliter <[email protected]> Reviewed-on: https://go-review.googlesource.com/c/go/+/447460 Auto-Submit: Michael Pratt <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Run-TryBot: Michael Pratt <[email protected]>
1 parent 72ce9ba commit 969bea8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/runtime/internal/sys/intrinsics_common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const len8tab = "" +
2424
"\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08" +
2525
"\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08"
2626

27-
// len64 returns the minimum number of bits required to represent x; the result is 0 for x == 0.
27+
// Len64 returns the minimum number of bits required to represent x; the result is 0 for x == 0.
2828
//
2929
// nosplit because this is used in src/runtime/histogram.go, which make run in sensitive contexts.
3030
//

src/runtime/os_openbsd_syscall2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func usleep_no_g(usec uint32) {
3838
usleep(usec)
3939
}
4040

41-
// write calls the write system call.
41+
// write1 calls the write system call.
4242
// It returns a non-negative number of bytes written or a negative errno value.
4343
//
4444
//go:noescape

src/runtime/stack.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ type adjustinfo struct {
564564
sghi uintptr
565565
}
566566

567-
// Adjustpointer checks whether *vpp is in the old stack described by adjinfo.
567+
// adjustpointer checks whether *vpp is in the old stack described by adjinfo.
568568
// If so, it rewrites *vpp to point into the new stack.
569569
func adjustpointer(adjinfo *adjustinfo, vpp unsafe.Pointer) {
570570
pp := (*uintptr)(vpp)

src/runtime/stubs2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func usleep_no_g(usec uint32) {
2525
usleep(usec)
2626
}
2727

28-
// write calls the write system call.
28+
// write1 calls the write system call.
2929
// It returns a non-negative number of bytes written or a negative errno value.
3030
//
3131
//go:noescape

src/runtime/traceback.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ func printAncestorTraceback(ancestor ancestorInfo) {
810810
}
811811
}
812812

813-
// printAncestorTraceback prints the given function info at a given pc
813+
// printAncestorTracebackFuncInfo prints the given function info at a given pc
814814
// within an ancestor traceback. The precision of this info is reduced
815815
// due to only have access to the pcs at the time of the caller
816816
// goroutine being created.
@@ -1282,7 +1282,7 @@ type cgoSymbolizerArg struct {
12821282
data uintptr
12831283
}
12841284

1285-
// cgoTraceback prints a traceback of callers.
1285+
// printCgoTraceback prints a traceback of callers.
12861286
func printCgoTraceback(callers *cgoCallers) {
12871287
if cgoSymbolizer == nil {
12881288
for _, c := range callers {

0 commit comments

Comments
 (0)