From aa822756e70b62138ba1927d07d41c7d97269c82 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 4 Jul 2015 00:05:47 +0200 Subject: [PATCH] Update README.md Little syntax correction --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 711903f51..8bb700b6c 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ func Gather(acc plugins.Accumulator) error { ### Example ```go +package simple // simple.go @@ -169,7 +170,7 @@ func (s *Simple) Gather(acc plugins.Accumulator) error { } func init() { - plugins.Add("simple", func() plugins.Plugin { &Simple{} }) + plugins.Add("simple", func() plugins.Plugin { return &Simple{} }) } ```