From 3a6d01f7a02107859593ca5a6c825261077f005c Mon Sep 17 00:00:00 2001 From: David Brown Date: Thu, 9 Feb 2017 15:23:28 -0600 Subject: [PATCH] Fix syntax errors in package-level documentation (#126) --- doc.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index c8c9add..9156b73 100644 --- a/doc.go +++ b/doc.go @@ -22,8 +22,8 @@ // After parsing TOML data with Load() or LoadFile(), use the Has() and Get() // methods on the returned TomlTree, to find your way through the document data. // -// if tree.Has('foo') { -// fmt.Prinln("foo is: %v", tree.Get('foo')) +// if tree.Has("foo") { +// fmt.Println("foo is:", tree.Get("foo")) // } // // Working with Paths @@ -44,10 +44,10 @@ // it avoids having to parse the passed key for '.' delimiters. // // // looks for a key named 'baz', within struct 'bar', within struct 'foo' -// tree.HasPath(string{}{"foo","bar","baz"}) +// tree.HasPath([]string{"foo","bar","baz"}) // // // returns the key at this path, if it is there -// tree.GetPath(string{}{"foo","bar","baz"}) +// tree.GetPath([]string{"foo","bar","baz"}) // // Note that this is distinct from the heavyweight query syntax supported by // TomlTree.Query() and the Query() struct (see below).