Skip to content

Commit ed99d8d

Browse files
eemelicatamorphism
andauthored
Apply suggestions from code review
Co-authored-by: Tim Chevalier <[email protected]>
1 parent 684a006 commit ed99d8d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/formatting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ whether its value was originally a _quoted literal_ or an _unquoted literal_.
211211
> For example,
212212
> the _option_ `foo=42` and the _option_ `foo=|42|` are treated as identical.
213213
214-
> In a JavaScript formatter,
214+
> For example, in a JavaScript formatter,
215215
> the _resolved value_ of a _text_ or a _literal_ could have the following implementation:
216216
>
217217
> ```ts
@@ -237,7 +237,7 @@ and its value is looked up from the _formatting context_ _input mapping_.
237237
238238
The resolution of a _variable_ fails if no value is identified for its _name_.
239239
If this happens, an _Unresolved Variable_ error is emitted
240-
and a _fallback value_ is used as _resolved value_ of the _variable_.
240+
and a _fallback value_ is used as the _resolved value_ of the _variable_.
241241
242242
### Function Resolution
243243
@@ -246,13 +246,13 @@ the following steps are taken:
246246
247247
1. If the _expression_ includes an _operand_, resolve its value.
248248
If this is a _fallback value_,
249-
use it as the _resolved value_ of the _expression_.
249+
return the _fallback value_ as the _resolved value_ of the _expression_.
250250
2. Resolve the _identifier_ of the _function_ and, based on the starting sigil,
251251
find the appropriate _function handler_ to call.
252252
If the implementation cannot find the _function handler_,
253253
or if the _identifier_ includes a _namespace_ that the implementation does not support,
254254
emit an _Unknown Function_ error
255-
and use a _fallback value_ as the _resolved value_ of the _expression_.
255+
and return a _fallback value_ as the _resolved value_ of the _expression_.
256256
257257
Implementations are not required to implement _namespaces_ or installable
258258
_function registries_.
@@ -283,7 +283,7 @@ the following steps are taken:
283283
_operand_ did not match that expected by the _function_,
284284
the _function_ SHOULD cause a _Bad Operand_ error to be emitted.
285285
286-
In all failure cases, use a _fallback value_ as the _resolved value_ of the _expression_.
286+
In all failure cases, return a _fallback value_ as the _resolved value_ of the _expression_.
287287
288288
#### Function Handler
289289

0 commit comments

Comments
 (0)