Skip to content

Commit

Permalink
little edit
Browse files Browse the repository at this point in the history
  • Loading branch information
quii committed Mar 29, 2018
1 parent cb9557f commit 0c77750
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pointers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,8 @@ There's a few new things here
## nil

- Pointers can be nil
- So when a function returns a pointer to something, you need to make sure you check if it's nil or not or you will get a runtime exception, the compiler wont help you here.
- Useful for when you want to describe a type that could be missing
- When a function returns a pointer to something, you need to make sure you check if it's nil or not or you will get a runtime exception, the compiler wont help you here.
- Useful for when you want to describe a value that could be missing

## Errors

Expand All @@ -720,4 +720,4 @@ There's a few new things here
- Useful for adding more domain specific meaning to values
- Can let you implement interfaces

Pointers and errors are an everyday concept in writing Go that you need to get comfortable with. Thankfully the compiler will usually help you out if you do something wrong, just take your time and read the error.
Pointers and errors are a big part of writing Go that you need to get comfortable with. Thankfully the compiler will _usually_ help you out if you do something wrong, just take your time and read the error.

0 comments on commit 0c77750

Please sign in to comment.