Permalink
Browse files

Updating delete syntax for sessions example

  • Loading branch information...
1 parent 32aca7a commit 6683d85f99d663e70c530137724f87c0c0ed7506 @paulbellamy committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/session/session.go
@@ -9,7 +9,7 @@ func Hello(env mango.Env) (mango.Status, mango.Headers, mango.Body) {
env.Session()["new_session_attribute"] = "Never Gonna Give You Up"
// To remove a session attribute delete it from the map
- env.Session()["old_session_attribute"] = nil, false
+ delete(env.Session(), "old_session_attribute")
return 200, mango.Headers{}, mango.Body("Hello World!")
}

0 comments on commit 6683d85

Please sign in to comment.