fix typo in @require statement in builtin.c3

This commit is contained in:
Book-reader
2024-12-29 16:43:11 +05:30
committed by Christoffer Lerno
parent 5c7a183f8a
commit 4f4476ba75

View File

@@ -238,7 +238,7 @@ macro enum_by_name($Type, String enum_name) @builtin
<*
@param $Type `The type of the enum`
@require $Type.kindof == ENUM `Only enums may be used`
@require $defined($Type.#value1) `Expected '#value' to match an enum associated value`
@require $defined($Type.#value) `Expected '#value' to match an enum associated value`
@require $assignable(value, $typeof($Type{}.#value)) `Expected the value to match the type of the associated value`
@ensure @typeis(return, $Type)
@return! SearchResult.MISSING