Update go.md

This commit is contained in:
Rico Sta. Cruz 2020-06-13 10:17:21 +10:00 committed by GitHub
parent a6fb6f3a26
commit 517343fcd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

3
go.md
View File

@ -135,11 +135,12 @@ func getPointer () (myPointer *int) {
} }
``` ```
{: data-line="3"} {: data-line="3"}
```go ```go
a := new(int) a := new(int)
*a = 234 *a = 234
``` ```
{: data-line="4"} {: data-line="2"}
Pointers point to a memory location of a variable. Go is fully garbage-collected. Pointers point to a memory location of a variable. Go is fully garbage-collected.