Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ktanaka101 committed Dec 4, 2021
1 parent b693c05 commit b1e7b76
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,12 @@ impl<'a> VM<'a> {
) -> Result<objects::StringLit> {
let value = match op {
opcode::Opcode::Add(_) => left_val.to_string() + right_val,
_ => return Err(anyhow::format_err!("unknown string operator. received {}", op)),
_ => {
return Err(anyhow::format_err!(
"unknown string operator. received {}",
op
))
}
};

Ok(objects::StringLit { value })
Expand Down

0 comments on commit b1e7b76

Please sign in to comment.