From bc09a7b179ea40f40ed4ed983c52e46bf32c29dd Mon Sep 17 00:00:00 2001 From: Andres Date: Sat, 17 Nov 2018 05:01:10 -0500 Subject: [PATCH] Fenced in code blocks for Syntax Highlighting (#23698) --- guide/english/go/go-pointers/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guide/english/go/go-pointers/index.md b/guide/english/go/go-pointers/index.md index fe605f55c3..76eb2ccc48 100644 --- a/guide/english/go/go-pointers/index.md +++ b/guide/english/go/go-pointers/index.md @@ -14,19 +14,19 @@ Pointers Go has pointers. A pointer holds the memory address of a value. The type *T is a pointer to a T value. Its zero value is nil. - +```go var p *int - +``` The & operator generates a pointer to its operand. - +```go i := 42 p = &i - +``` The * operator denotes the pointer's underlying value. - +```go fmt.Println(*p) // read i through the pointer p *p = 21 // set i through the pointer p - +``` This is known as "dereferencing" or "indirecting". Unlike C, Go has no pointer arithmetic.