Skip to content

Commit 9405021

Browse files
committed
Standardise assert format
1 parent fa98e61 commit 9405021

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec/Section 2 -- Language.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ StringCharacter :: `\u` EscapedUnicode
972972

973973
- Let {value} be the hexadecimal value represented by the sequence of {HexDigit}
974974
within {EscapedUnicode}.
975-
- Assert {value} is a within the _Unicode scalar value_ range (>= 0x0000 and <=
975+
- Assert: {value} is a within the _Unicode scalar value_ range (>= 0x0000 and <=
976976
0xD7FF or >= 0xE000 and <= 0x10FFFF).
977977
- Return the _Unicode scalar value_ {value}.
978978

@@ -984,12 +984,12 @@ HexDigit HexDigit HexDigit
984984
- Let {trailingValue} be the hexadecimal value represented by the second
985985
sequence of {HexDigit}.
986986
- If {leadingValue} is >= 0xD800 and <= 0xDBFF (a _Leading Surrogate_):
987-
- Assert {trailingValue} is >= 0xDC00 and <= 0xDFFF (a _Trailing Surrogate_).
987+
- Assert: {trailingValue} is >= 0xDC00 and <= 0xDFFF (a _Trailing Surrogate_).
988988
- Return ({leadingValue} - 0xD800) × 0x400 + ({trailingValue} - 0xDC00) +
989989
0x10000.
990990
- Otherwise:
991-
- Assert {leadingValue} is within the _Unicode scalar value_ range.
992-
- Assert {trailingValue} is within the _Unicode scalar value_ range.
991+
- Assert: {leadingValue} is within the _Unicode scalar value_ range.
992+
- Assert: {trailingValue} is within the _Unicode scalar value_ range.
993993
- Return the sequence of the _Unicode scalar value_ {leadingValue} followed by
994994
the _Unicode scalar value_ {trailingValue}.
995995

spec/Section 6 -- Execution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ coerce result values.
757757

758758
CoerceResult(leafType, value):
759759

760-
- Assert {value} is not {null}.
760+
- Assert: {value} is not {null}.
761761
- Return the result of calling the internal method provided by the type system
762762
for determining the "result coercion" of {leafType} given the value {value}.
763763
This internal method must return a valid value for the type and not {null}.

0 commit comments

Comments
 (0)