Advertisement
ralfie

Untitled

Mar 9th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.38 KB | None | 0 0
  1. pub fn make_tm(tm_desc_file: &str) -> Result<TM, Box<Error>> {
  2.  
  3.     ...
  4.  
  5.     match iter.next() {
  6.         Some("alphabet") => (),
  7.         _                => return Result::Err(Box::from(io::Error::new(
  8.                                 io::ErrorKind::InvalidData,
  9.                                 format!("Error parsing TM description on line {}", state_count + 2)))),
  10.     }
  11.  
  12.     ...
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement