Skip to content

Commit 1f157ba

Browse files
committed
docs: em! size hint necessity
1 parent 4c88a0f commit 1f157ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub enum Letter {
3232
}
3333

3434
// Indexing and mutation
35+
// The SIZE hint is required until [generic_const_expr](https://github.com/rust-lang/rust/issues/76560) are stabilized.
3536
let mut enum_map = EnumMap::<Letter, i32, { Letter::SIZE }>::new_default();
3637
assert_eq!(0, enum_map[Letter::A]);
3738
enum_map[Letter::A] = 42;

0 commit comments

Comments
 (0)