Skip to content

Commit dd616a5

Browse files
authored
tweak wording, mention alphanumeric
Clarify the kebab-case convention for enum values.
1 parent c0e1f6a commit dd616a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

normative-conventions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ NB: This convention is new as of 2024, and most earlier parts of the language do
4848

4949
## Multi-word strings which are serving as enum values should be kebab-case
5050

51-
For example, `Atomics.wait` returns one of the three strings `"not-equal"`, `"ok"`, or `"timed-out"`, and `Uint8Array.prototype.setFromBase64` takes an argument with possible values `"loose"`, `"strict"`, or `"stop-before-partial"`.
51+
I.e., lowercase and dash-delimited. For example, `Atomics.wait` returns one of the three strings `"not-equal"`, `"ok"`, or `"timed-out"`, and `Uint8Array.prototype.setFromBase64` takes an argument with possible values `"loose"`, `"strict"`, or `"stop-before-partial"`.
52+
53+
The pieces between the dashes should generally be alphanumeric.

0 commit comments

Comments
 (0)