Skip to content

Commit ce4ceb2

Browse files
authored
fix typo in 'integer' example (#31)
1 parent 32a9aea commit ce4ceb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/integer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl Model for MyModel {
2222
None => Ok(0..1),
2323
Some(&1) => Ok(1..2),
2424
Some(&2) => Ok(2..3),
25-
Some(&3) => Ok(2..4),
25+
Some(&3) => Ok(3..4),
2626
Some(x) => Err(Error(*x)),
2727
}
2828
}
@@ -43,5 +43,5 @@ impl Model for MyModel {
4343
}
4444

4545
fn main() {
46-
common::round_trip(MyModel, vec![2, 1, 1, 2, 2]);
46+
common::round_trip(MyModel, vec![2, 1, 1, 2, 2, 3, 1]);
4747
}

0 commit comments

Comments
 (0)