Skip to content

Commit

Permalink
chore(trie): prefix set doc comment clarification (#12010)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Oct 23, 2024
1 parent f3853e7 commit b732619
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/trie/trie/src/prefix_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ pub struct PrefixSet {
}

impl PrefixSet {
/// Returns `true` if any of the keys in the set has the given prefix or
/// if the given prefix is a prefix of any key in the set.
/// Returns `true` if any of the keys in the set has the given prefix
#[inline]
pub fn contains(&mut self, prefix: &[u8]) -> bool {
if self.all {
Expand Down

0 comments on commit b732619

Please sign in to comment.