Skip to content

Commit 0db2135

Browse files
authored
Fix README: "suffix" → "prefix".
1 parent 586c395 commit 0db2135

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ let request: [String:JSEN] = [
9999

100100
Enters the…
101101

102-
### `%` Suffix Operator
102+
### `%` Prefix Operator
103103

104104
```swift
105105
let request: [String:JSEN] = [
106106
"amount": %normalizedAmount // This works!
107107
]
108108
```
109109

110-
The custom `%` suffix operator transforms any `Int`, `Double`, `String`, `Bool`, `[JSEN]` and `[String:JSEN]` values into its respective JSEN value.
110+
The custom `%` prefix operator transforms any `Int`, `Double`, `String`, `Bool`, `[JSEN]` and `[String:JSEN]` values into its respective JSEN value.
111111

112112

113113
By design, no support was added to transform `Optional` into a `.null` to prevent misuse.

0 commit comments

Comments
 (0)