Rename TomlTree to Tree (#159)

Avoid stutter.

Fixes #55
This commit is contained in:
Thomas Pelletier
2017-05-10 17:53:23 -07:00
committed by GitHub
parent 23f644976a
commit 685a1f1cb7
20 changed files with 170 additions and 170 deletions
+3 -3
View File
@@ -112,7 +112,7 @@
// There are several filters provided with the library:
//
// tree
// Allows nodes of type TomlTree.
// Allows nodes of type Tree.
// int
// Allows nodes of type int64.
// float
@@ -138,7 +138,7 @@
//
// Compiled Queries
//
// Queries may be executed directly on a TomlTree object, or compiled ahead
// Queries may be executed directly on a Tree object, or compiled ahead
// of time and executed discretely. The former is more convienent, but has the
// penalty of having to recompile the query expression each time.
//
@@ -163,7 +163,7 @@
//
// // define the filter, and assign it to the query
// query.SetFilter("bazOnly", func(node interface{}) bool{
// if tree, ok := node.(*TomlTree); ok {
// if tree, ok := node.(*Tree); ok {
// return tree.Has("baz")
// }
// return false // reject all other node types