From 545e4bad2cf8672ac789071964687c06b1feacea Mon Sep 17 00:00:00 2001 From: Luke Schoen Date: Tue, 25 Apr 2023 04:17:41 +1000 Subject: [PATCH] Update k_macros.rs (#13) minor tweaks --- src/k_macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_macros.rs b/src/k_macros.rs index d2f9153..83d5c23 100644 --- a/src/k_macros.rs +++ b/src/k_macros.rs @@ -9,7 +9,7 @@ // Your task here is to create an analogous macro for creating hashmaps pre-populated with literal // values. The macro should be called like follows: // -// let map1: HashMap = map![1 =>2, 3 => 4, 5 => 6]; +// let map1: HashMap = map![1 => 2, 3 => 4, 5 => 6]; #[macro_export] macro_rules! map { ( $($todo:tt)* ) => { @@ -94,7 +94,7 @@ mod tests { Foo: u32 = 10; // should generate `pub struct Bar` that implements `Get` pub Bar: u32 = 42; - // should generate `pub struct Baz` that has implements `Get`. + // should generate `pub struct Baz` that implements `Get`. pub Baz: u16 = 21; );