From 124cf19a801abba06978d690f8ccbf7d93ab8ad5 Mon Sep 17 00:00:00 2001 From: Bas Zalmstra Date: Sat, 2 May 2020 14:01:03 +0200 Subject: [PATCH] misc: apply suggestions from code review --- crates/mun_runtime/tests/util.rs | 6 ++++-- crates/mun_syntax/src/ast/expr_extensions.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/mun_runtime/tests/util.rs b/crates/mun_runtime/tests/util.rs index 46086dfd6..1e1acaed0 100644 --- a/crates/mun_runtime/tests/util.rs +++ b/crates/mun_runtime/tests/util.rs @@ -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(); @@ -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(); diff --git a/crates/mun_syntax/src/ast/expr_extensions.rs b/crates/mun_syntax/src/ast/expr_extensions.rs index 06e2999a2..fa3404bd1 100644 --- a/crates/mun_syntax/src/ast/expr_extensions.rs +++ b/crates/mun_syntax/src/ast/expr_extensions.rs @@ -292,7 +292,7 @@ fn skip_digits(base: usize, iter: &mut Peekable) { } } -/// 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();