From 80dc54436ee96def4b80d27573caff31f41ffa95 Mon Sep 17 00:00:00 2001 From: josephrocca <1167575+josephrocca@users.noreply.github.com> Date: Sat, 8 Jun 2019 18:15:58 +1000 Subject: [PATCH] Add simple usage code Show simple usage code for rust newbies like me --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 123e18bcd9..16f45bb6ea 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,13 @@ Add this to your `Cargo.toml`: hashbrown = "0.4" ``` +Then: + +```rs +use hashbrown::HashMap; +let mut map = HashMap::new(); +``` + This crate has the following Cargo features: - `nightly`: Enables nightly-only features: `no_std` support and `#[may_dangle]`.