Update README.md

Little syntax correction
This commit is contained in:
Nicolas 2015-07-04 00:05:47 +02:00
parent e9ad786578
commit aa822756e7
1 changed files with 2 additions and 1 deletions

View File

@ -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{} })
}
```