From 304c68c4897f47f22173e75c4e9f07cd215f70d8 Mon Sep 17 00:00:00 2001 From: james4e Date: Sun, 9 Oct 2016 14:46:58 +0800 Subject: [PATCH] Fix build error remove asterisk --- creational/singleton.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/creational/singleton.md b/creational/singleton.md index 09ffeae..fa6c463 100644 --- a/creational/singleton.md +++ b/creational/singleton.md @@ -11,9 +11,9 @@ type singleton map[string]string var once sync.Once -var instance *singleton +var instance singleton -func New() *singleton { +func New() singleton { once.Do(func() { instance = make(singleton) })