summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Silverlock <matt@eatsleeprepeat.net>2015-10-02 16:59:52 +0300
committerMatt Silverlock <matt@eatsleeprepeat.net>2015-10-02 16:59:52 +0300
commitf7261893ca3ea922c30eabe742c036d2c1de6e0a (patch)
tree8b1f6240dd30ac42329ee861c76b66058577dd3e
parentb6bcae186ac3099dba8fafce125dc930393f1e5e (diff)
parent28bc6170a1cd767d14d2f4728cc6f8e2876e4d1f (diff)
Merge pull request #56 from zemirco/patch-1
[docs] Fixed syntax error in docs for struct initialization
-rw-r--r--doc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc.go b/doc.go
index 0da92a3..b03975f 100644
--- a/doc.go
+++ b/doc.go
@@ -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
}