Skip to content

Commit

Permalink
Add Enum constraint to enummap
Browse files Browse the repository at this point in the history
Fix typo in enumset require
  • Loading branch information
Caleb-o authored and lerno committed Sep 20, 2024
1 parent d5a96ed commit 0900f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/std/collections/enummap.c3
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @require Enum.kindof == TypeKind.ENUM : "Only enums may be used with an enummap"
**/
module std::collections::enummap(<Enum, ValueType>);
import std::io;
struct EnumMap (Printable)
Expand Down
2 changes: 1 addition & 1 deletion lib/std/collections/enumset.c3
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// a copy of which can be found in the LICENSE_STDLIB file.

/**
* @require Enum.kindof == TypeKind.ENUM : "Only enums maybe be used with an enumset"
* @require Enum.kindof == TypeKind.ENUM : "Only enums may be used with an enumset"
**/
module std::collections::enumset(<Enum>);
import std::io;
Expand Down

0 comments on commit 0900f40

Please sign in to comment.