diff options
author | Matt Silverlock <matt@eatsleeprepeat.net> | 2015-10-02 16:59:52 +0300 |
---|---|---|
committer | Matt Silverlock <matt@eatsleeprepeat.net> | 2015-10-02 16:59:52 +0300 |
commit | f7261893ca3ea922c30eabe742c036d2c1de6e0a (patch) | |
tree | 8b1f6240dd30ac42329ee861c76b66058577dd3e | |
parent | b6bcae186ac3099dba8fafce125dc930393f1e5e (diff) | |
parent | 28bc6170a1cd767d14d2f4728cc6f8e2876e4d1f (diff) |
Merge pull request #56 from zemirco/patch-1
[docs] Fixed syntax error in docs for struct initialization
-rw-r--r-- | doc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,7 +135,7 @@ a need to type-assert data when retrieving it. We'll use the Person struct we re // Retrieve our struct and type-assert it val := session.Values["person"] - var person &Person{} + var person = &Person{} if person, ok := val.(*Person); !ok { // Handle the case that it's not an expected type } |