Skip to content

Commit

Permalink
it returns an option, not a result
Browse files Browse the repository at this point in the history
  • Loading branch information
Phineas committed Oct 29, 2021
1 parent 4b4c650 commit cad8cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ use domain_lookup_tree::DomainLookupTree;

let mut tree = DomainLookupTree::new();


// Insert some domains

tree.insert(".google.com"); // prefix with a dot to denote a wildcard entry
tree.insert("api.twitter.com");
tree.insert("phineas.io");
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ impl DomainLookupTree {
}
}

/// Looks up a domain in the tree, returns a Result with the matched string including wildcard prefix if
/// applicable
/// Looks up a domain in the tree, returns an Option with the matched string including wildcard prefix
/// if applicable
///
/// # Arguments
///
Expand Down

0 comments on commit cad8cac

Please sign in to comment.