Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub fn make_tm(tm_desc_file: &str) -> Result<TM, Box<Error>> {
- ...
- match iter.next() {
- Some("alphabet") => (),
- _ => return Result::Err(Box::from(io::Error::new(
- io::ErrorKind::InvalidData,
- format!("Error parsing TM description on line {}", state_count + 2)))),
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement