Skip to content

Commit 6481037

Browse files
committed
update code
1 parent adcdae1 commit 6481037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter9/sources/go-unsafe/go_stack_obj_ref_by_uintptr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
func main() {
99
var x = [10]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
10-
fmt.Printf("变量x的值=%d\n", x)
10+
fmt.Printf("变量x的值=%v\n", x)
1111
println("变量x的地址=", &x)
1212

1313
var p = uintptr(unsafe.Pointer(&x))

0 commit comments

Comments
 (0)