Skip to content

Commit

Permalink
fix: correct typos and update invalid-type error example (#175)
Browse files Browse the repository at this point in the history
- Fixed typos in the document:
  - Corrected "value the the" to "value the".
  - Corrected "type contraints" to "type constraints".
- Adjusted the example output for the `ceil` function to reflect an `<error: invalid-type>` instead of `null`.

<!-- ps-id: 14f98511-1508-47fc-8f33-baec50065de4 -->
  • Loading branch information
cawalch authored Dec 9, 2024
1 parent 428452e commit cc40def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jep-003a-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ current node is only allowed as a bare expression.

At the start of an expression, the value of the current node is the data
being evaluated by the JMESPath expression. As an expression is evaluated, the
value the the current node represents MUST change to reflect the node currently
value the current node represents MUST change to reflect the node currently
being evaluated. When in a projection, the current node value MUST be changed
to the node currently being evaluated by the projection.

Expand All @@ -135,7 +135,7 @@ Each function signature declares the types of its input parameters. If any
type constraints are not met, implementations must indicate that an
`invalid-type` error occurred.

In order to accommodate type contraints, functions are provided to convert
In order to accommodate type constraints, functions are provided to convert
types to other types (`to_string`, `to_number`) which are defined below.
No explicit type conversion happens unless a user specifically uses one of
these type conversion functions.
Expand Down Expand Up @@ -306,7 +306,7 @@ Returns the next highest integer value by rounding up if necessary.
| ``ceil(`1.001`)`` | 2
| ``ceil(`1.9`)`` | 2
| ``ceil(`1`)`` | 1
| ``ceil(`"abc"`)`` | `null`
| ``ceil(`"abc"`)`` | `<error: invalid-type>`
### contains
Expand Down

0 comments on commit cc40def

Please sign in to comment.