Browse files

fix Trie.keysWithPrefix throwing on not found

  • Loading branch information...
1 parent 8118e2e commit 63ac31f7487ead6e43df97b4583307cb62d44b88 @moos moos committed May 3, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -730,7 +730,7 @@ console.log(trie.findMatchesOnPath("tester")); // ['tes', 'test'];
### All Keys with Prefix
-This search will return all of the words in the Trie with the given prefix.
+This search will return all of the words in the Trie with the given prefix, or [ ] if not found.
```javascript
console.log(trie.keysWithPrefix("string")); // ["string1", "string2", "string3"]

0 comments on commit 63ac31f

Please sign in to comment.