Skip to content

Commit

Permalink
Fix lifetime annotation in anagram stub
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
senekor committed Oct 17, 2023
1 parent 5ee312d commit 3f3fd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/anagram/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::collections::HashSet;

pub fn anagrams_for<'a>(word: &str, possible_anagrams: &[&str]) -> HashSet<&'a str> {
pub fn anagrams_for<'a>(word: &str, possible_anagrams: &[&'a str]) -> HashSet<&'a str> {
todo!("For the '{word}' word find anagrams among the following words: {possible_anagrams:?}");
}

0 comments on commit 3f3fd5e

Please sign in to comment.