Skip to content

Commit fc8e466

Browse files
authored
Update README.md
1 parent a8afb21 commit fc8e466

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ It is now possible to easily replicate this crate's functionality in Rust's stan
6969
use std::collections::HashMap;
7070
use std::sync::OnceLock;
7171

72-
static HASHMAP: OnceLock<HashMap<u32, &'static str>> = OnceLock::new();
73-
7472
fn hashmap() -> &'static HashMap<u32, &'static str> {
73+
static HASHMAP: OnceLock<HashMap<u32, &'static str>> = OnceLock::new();
7574
HASHMAP.get_or_init(|| {
7675
let mut m = HashMap::new();
7776
m.insert(0, "foo");

0 commit comments

Comments
 (0)