From 914d625e1bbb201a6a9b27a61cb79e9c91d468b7 Mon Sep 17 00:00:00 2001 From: whs Date: Thu, 28 Sep 2023 19:34:43 +0800 Subject: [PATCH 1/2] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f485898..8548b03 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ let hash_map = rust::import("std::collections", "HashMap"); let tokens: rust::Tokens = quote! { fn main() { - let mut m = #hash_map::new(); + let mut m = $hash_map::new(); m.insert(1u32, 2u32); } }; From fea268db7efff68c968ac3033da776ae3ba685ff Mon Sep 17 00:00:00 2001 From: whs Date: Fri, 29 Sep 2023 18:52:55 +0800 Subject: [PATCH 2/2] Fix typo --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a0d7b6e..cd56fae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -103,7 +103,7 @@ //! //! let tokens: rust::Tokens = quote! { //! fn main() { -//! let mut m = #hash_map::new(); +//! let mut m = $hash_map::new(); //! m.insert(1u32, 2u32); //! } //! };