summaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorMirco Zeiss <mirco.zeiss@gmail.com>2015-10-02 16:41:35 +0300
committerMirco Zeiss <mirco.zeiss@gmail.com>2015-10-02 16:41:35 +0300
commit28bc6170a1cd767d14d2f4728cc6f8e2876e4d1f (patch)
tree8b1f6240dd30ac42329ee861c76b66058577dd3e /doc.go
parentb6bcae186ac3099dba8fafce125dc930393f1e5e (diff)
fix syntax error in docs for complex datatype
Diffstat (limited to 'doc.go')
-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
}