Skip to content

Commit 131ae36

Browse files
authored
restate convention
1 parent b25ebf9 commit 131ae36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

normative-conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ 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-
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"`.
51+
When a string is serving as an enum value, in any position (including arguments and return values), that string should be lowercase and words in it should be separated by dashes rather than spaces. 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"`.
5252

5353
The content between the dashes should generally be alphanumeric.
5454

0 commit comments

Comments
 (0)