From 28bc6170a1cd767d14d2f4728cc6f8e2876e4d1f Mon Sep 17 00:00:00 2001 From: Mirco Zeiss Date: Fri, 2 Oct 2015 15:41:35 +0200 Subject: fix syntax error in docs for complex datatype --- doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3