Skip to content

Commit

Permalink
correct
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <contact@freyskeyd.fr>
  • Loading branch information
Simon Paitrault committed Dec 7, 2015
1 parent aaf3abf commit 962aa20
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/phonetics/metaphone/metaphone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub fn metaphone<T:ToString + ?Sized>(word: &T) -> String {
.chars()
.collect::<Vec<_>>();

println!("{:?}", word_char);
let mut local = String::new();

let action_when_second_letter_match = |string: &mut String, letter: char| {
Expand Down Expand Up @@ -57,7 +56,6 @@ pub fn metaphone<T:ToString + ?Sized>(word: &T) -> String {
let char_at = local.chars().clone().nth(n).unwrap_or('_');
let char_next = local.chars().clone().nth(n + 1).unwrap_or('_');

println!("code_len: {}, n: {}, char_at: {}, char_next: {}", code.len(), n, char_at, char_next);
if char_at != 'C' && is_previous_char(&local, n, char_at) {
n += 1;
} else {
Expand Down

0 comments on commit 962aa20

Please sign in to comment.