Skip to content

Commit 37cd56f

Browse files
author
Daisuke Maki
committed
appease linter
1 parent 1d34b58 commit 37cd56f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

trie_example_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ func Example() {
1010
tree := trie.New[string, rune, any](trie.String())
1111

1212
// Put values in the trie
13-
tree.Put("foo", "one")
14-
tree.Put("bar", 2)
15-
tree.Put("baz", 3.0)
16-
tree.Put("日本語", []byte{'f', 'o', 'u', 'r'})
13+
_ = tree.Put("foo", "one")
14+
_ = tree.Put("bar", 2)
15+
_ = tree.Put("baz", 3.0)
16+
_ = tree.Put("日本語", []byte{'f', 'o', 'u', 'r'})
1717

1818
// Get a value from the trie
1919
v, ok := tree.Get("日本語")

trie_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func TestTrie(t *testing.T) {
2424
}
2525

2626
for _, tc := range testcases {
27-
tree.Put(tc.Key, tc.Value)
27+
_ = tree.Put(tc.Key, tc.Value)
2828
}
2929

3030
for _, tc := range testcases {

0 commit comments

Comments
 (0)