Add Enum constraint to enummap

Fix typo in enumset require
This commit is contained in:
Caleb-o
2024-09-21 01:54:04 +10:00
committed by Christoffer Lerno
parent d5a96ed637
commit 0900f401c0
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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;