Skip to content

Commit 219aa2d

Browse files
authored
Merge pull request #91 from google/drinckes-rustpatch
Fix typo in rust function
2 parents 31765d4 + 75b7ec3 commit 219aa2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/private.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn code_value(chr: char) -> usize {
1111
// We assume this function is only called by other functions that have
1212
// already ensured that the characters in the passed-in code are all valid
1313
// and have all been "treated" (upper-cased, padding and '+' stripped)
14-
CODE_ALPHABET.iter().position(|&x| x == char).unwrap()
14+
CODE_ALPHABET.iter().position(|&x| x == chr).unwrap()
1515
}
1616

1717
pub fn normalize_longitude(value: f64) -> f64 {

0 commit comments

Comments
 (0)