diff --git a/doc/docs.md b/doc/docs.md index 8cee27271d..8f8bb40c31 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -3440,18 +3440,17 @@ The enum type can be any integer type, but can be omitted, if it is `int`: `enum Enum match must be exhaustive or have an `else` branch. This ensures that if a new enum field is added, it's handled everywhere in the code. -Enum fields cannot re-use reserved keywords. However, reserved keywords may be escaped -with an @. +Enum fields can re-use reserved keywords: ```v enum Color { - @none + none red green blue } -color := Color.@none +color := Color.none println(color) ```