We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
has_key?
Playing around with the gem I've noticed that has_key? method returns nil if the key is not found.
nil
Shouldn't, by generally accepted convention, a method ending with ? return always Boolean?
?
I can see that method for has_key? might be wrong. The comment says that it returns true/false, but actually it returns Qnil.
true/false
Qnil
https://github.com/tyler/trie/blob/master/ext/trie/trie.c#L87
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Playing around with the gem I've noticed that
has_key?
method returnsnil
if the key is not found.Shouldn't, by generally accepted convention, a method ending with
?
return always Boolean?I can see that method for
has_key?
might be wrong. The comment says that it returnstrue/false
, but actually it returnsQnil
.https://github.com/tyler/trie/blob/master/ext/trie/trie.c#L87
The text was updated successfully, but these errors were encountered: