Skip to content

Commit 4f4476b

Browse files
Book-readerlerno
authored andcommitted
fix typo in @require statement in builtin.c3
1 parent 5c7a183 commit 4f4476b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/core/builtin.c3

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

0 commit comments

Comments
 (0)