We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df41f0 commit 1917a15Copy full SHA for 1917a15
examples/common/mod.rs
@@ -48,7 +48,7 @@ pub fn round_trip_string<M>(model: M, input: &str)
48
where
49
M: Model<Symbol = char> + Clone,
50
{
51
- let input_bytes = input.bytes().len();
+ let input_bytes = input.len();
52
53
let buffer = encode(model.clone(), input.chars());
54
examples/sherlock.rs
@@ -57,7 +57,7 @@ fn main() {
57
let mut file = File::open("./resources/sherlock.txt").unwrap();
58
let mut input = String::new();
59
file.read_to_string(&mut input).unwrap();
60
61
62
let model = StringModel::new(ALPHABET.chars().collect());
63
0 commit comments