Skip to content

Commit

Permalink
misc: apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed May 2, 2020
1 parent 7298dfa commit 124cf19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions crates/mun_runtime/tests/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ impl TestDriver {
{
panic!(
"compiler errors:\n{}",
String::from_utf8(compiler_errors).expect("comiler errors are not UTF-8 formatted")
String::from_utf8(compiler_errors)
.expect("compiler errors are not UTF-8 formatted")
)
}
let out_path = driver.write_assembly(file_id).unwrap();
Expand Down Expand Up @@ -86,7 +87,8 @@ impl TestDriver {
{
panic!(
"compiler errors:\n{}",
String::from_utf8(compiler_errors).expect("comiler errors are not UTF-8 formatted")
String::from_utf8(compiler_errors)
.expect("compiler errors are not UTF-8 formatted")
)
}
let out_path = self.driver.write_assembly(self.file_id).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_syntax/src/ast/expr_extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ fn skip_digits(base: usize, iter: &mut Peekable<CharIndices>) {
}
}

/// Given a string containing an f64 literal (e.g `123.4` or `1234.4f32`), splits the string in the
/// Given a string containing a float literal (e.g `123.4` or `1234.4f32`), splits the string in the
/// value part and the suffix part.
fn split_float_text_and_suffix(text: &str) -> (&str, Option<&str>) {
let mut iter = text.char_indices().peekable();
Expand Down

0 comments on commit 124cf19

Please sign in to comment.