From 989863b11f7f9b455d4d0f63ba2fa9c67b621981 Mon Sep 17 00:00:00 2001 From: Dmitry Bochkarev Date: Thu, 30 May 2013 20:38:23 +0600 Subject: [PATCH] fix doc.go --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index c807928..2976064 100644 --- a/doc.go +++ b/doc.go @@ -39,8 +39,8 @@ The application can later access the variable using the same key you provided: // val is "bar". val := context.Get(r, foo.MyKey) - // returns true - ok := context.Has(r, foo.MyKey) + // returns ("bar", true) + val, ok := context.GetOk(r, foo.MyKey) // ... }