Skip to content

Commit

Permalink
#7 panic
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 19, 2023
1 parent 986ae72 commit a9366d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ assert_eq!(2, m.len());

Pay attention, here the map is created with an extra generic argument `10`. This is
the total size of the map, which is allocated on stack when `::new()` is called.
Unlike `HashMap`, the `Map` doesn't use heap at all.
Unlike `HashMap`, the `Map` doesn't use heap at all. If more than ten keys will be
added to the map, it will panic.

Read [the API documentation](https://docs.rs/micromap/latest/micromap/). The struct
[`micromap::Map`](https://docs.rs/micromap/latest/micromap/struct.Map.html) is designed as closely similar to
Expand Down

0 comments on commit a9366d2

Please sign in to comment.