Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make spell check happy
  • Loading branch information
arihant2math committed Apr 6, 2025
commit ce7a8908b04551f5ebd1f345517862f46c9fbb47
6 changes: 3 additions & 3 deletions vm/src/exceptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ impl VirtualMachine {

if let Some(text) = maybe_text {
// if text ends with \n, remove it
let rtext = text.as_str().trim_end_matches('\n');
let l_text = rtext.trim_start_matches([' ', '\n', '\x0c']); // \x0c is \f
let spaces = (rtext.len() - l_text.len()) as isize;
let r_text = text.as_str().trim_end_matches('\n');
let l_text = r_text.trim_start_matches([' ', '\n', '\x0c']); // \x0c is \f
let spaces = (r_text.len() - l_text.len()) as isize;

writeln!(output, " {}", l_text)?;

Expand Down
Loading