Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Oct 11, 2024
1 parent 1d34b58 commit 37cd56f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions trie_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ func Example() {
tree := trie.New[string, rune, any](trie.String())

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

// Get a value from the trie
v, ok := tree.Get("日本語")
Expand Down
2 changes: 1 addition & 1 deletion trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestTrie(t *testing.T) {
}

for _, tc := range testcases {
tree.Put(tc.Key, tc.Value)
_ = tree.Put(tc.Key, tc.Value)
}

for _, tc := range testcases {
Expand Down

0 comments on commit 37cd56f

Please sign in to comment.