Skip to content

Commit 63d47d7

Browse files
committed
tune example
1 parent 37146d3 commit 63d47d7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[![Travis](https://travis-ci.org/spacewander/go-suffix-tree.svg?branch=master)](https://travis-ci.org/spacewander/go-suffix-tree)
22
[![GoReportCard](http://goreportcard.com/badge/spacewander/go-suffix-tree)](http://goreportcard.com/report/spacewander/go-suffix-tree)
33
[![codecov.io](https://codecov.io/github/spacewander/go-suffix-tree/coverage.svg?branch=master)](https://codecov.io/github/spacewander/go-suffix-tree?branch=master)
4-
[![license](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/spacewander/go-suffix-tree/blob/master/LICENSE)
5-
[![godoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/spacewander/go-suffix-tree)
4+
[![license](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/spacewander/go-suffix-tree/blob/master/LICENSE)
5+
[![godoc](https://img.shields.io/badge/godoc-reference-green.svg)](https://godoc.org/github.com/spacewander/go-suffix-tree)
66

77
# go-suffix-tree
88

example_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
)
66

7-
func ExampleInsert() {
7+
func ExampleTree_Insert() {
88
tree := NewTree()
99
tree.Insert([]byte("sth"), "sth")
1010
oldValue, ok := tree.Insert([]byte("sth"), "else")
@@ -21,7 +21,7 @@ func ExampleInsert() {
2121
// else
2222
}
2323

24-
func ExampleGet() {
24+
func ExampleTree_Get() {
2525
tree := NewTree()
2626
tree.Insert([]byte("sth"), "sth")
2727
value, found := tree.Get([]byte("sth"))
@@ -31,7 +31,7 @@ func ExampleGet() {
3131
// Output: sth
3232
}
3333

34-
func ExampleLongestSuffix() {
34+
func ExampleTree_LongestSuffix() {
3535
tree := NewTree()
3636
tree.Insert([]byte("table"), "table")
3737
tree.Insert([]byte("able"), "able")
@@ -46,7 +46,7 @@ func ExampleLongestSuffix() {
4646
// table
4747
}
4848

49-
func ExampleRemove() {
49+
func ExampleTree_Remove() {
5050
tree := NewTree()
5151
tree.Insert([]byte("sth"), "sth")
5252
oldValue, found := tree.Remove([]byte("sth"))
@@ -62,7 +62,7 @@ func ExampleRemove() {
6262
// Already removed
6363
}
6464

65-
func ExampleWalk() {
65+
func ExampleTree_Walk() {
6666
tree := NewTree()
6767
tree.Insert([]byte("able"), 1)
6868
tree.Insert([]byte("table"), 2)
@@ -84,7 +84,7 @@ func ExampleWalk() {
8484
// able
8585
}
8686

87-
func ExampleWalkSuffix() {
87+
func ExampleTree_WalkSuffix() {
8888
tree := NewTree()
8989
tree.Insert([]byte("able"), 1)
9090
tree.Insert([]byte("table"), 2)

0 commit comments

Comments
 (0)