Skip to content

Commit 12f2b4f

Browse files
runtime: fix case in KeepAlive comment
Fixes #16299. Change-Id: I76f541c7f11edb625df566f2f1035147b8bcd9dd Reviewed-on: https://go-review.googlesource.com/24830 Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 915398f commit 12f2b4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/mfinal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ func findObject(v unsafe.Pointer) (s *mspan, x unsafe.Pointer, n uintptr) {
450450
// type File struct { d int }
451451
// d, err := syscall.Open("/file/path", syscall.O_RDONLY, 0)
452452
// // ... do something if err != nil ...
453-
// p := &FILE{d}
453+
// p := &File{d}
454454
// runtime.SetFinalizer(p, func(p *File) { syscall.Close(p.d) })
455455
// var buf [10]byte
456456
// n, err := syscall.Read(p.d, buf[:])

0 commit comments

Comments
 (0)