aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mfinal.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-07-08 07:56:52 -0700
committerIan Lance Taylor <iant@golang.org>2016-07-08 16:50:26 +0000
commit12f2b4ff0ea694fc31e5b25d61d36cf058a88f35 (patch)
tree38662f966a7a36c455a3742030c13c88141aac43 /src/runtime/mfinal.go
parent915398f14fff28f7ba8592f134e22079de044745 (diff)
downloadgo-12f2b4ff0ea694fc31e5b25d61d36cf058a88f35.tar.gz
go-12f2b4ff0ea694fc31e5b25d61d36cf058a88f35.zip
runtime: fix case in KeepAlive comment
Fixes #16299. Change-Id: I76f541c7f11edb625df566f2f1035147b8bcd9dd Reviewed-on: https://go-review.googlesource.com/24830 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/mfinal.go')
-rw-r--r--src/runtime/mfinal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mfinal.go b/src/runtime/mfinal.go
index 1a744e4a51..14ebec81bf 100644
--- a/src/runtime/mfinal.go
+++ b/src/runtime/mfinal.go
@@ -450,7 +450,7 @@ func findObject(v unsafe.Pointer) (s *mspan, x unsafe.Pointer, n uintptr) {
// type File struct { d int }
// d, err := syscall.Open("/file/path", syscall.O_RDONLY, 0)
// // ... do something if err != nil ...
-// p := &FILE{d}
+// p := &File{d}
// runtime.SetFinalizer(p, func(p *File) { syscall.Close(p.d) })
// var buf [10]byte
// n, err := syscall.Read(p.d, buf[:])