Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jul 15, 2024
1 parent 3694ca8 commit b5d5980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,16 +290,16 @@ In addition to [`swift-mustache`'s own "functions"/"transforms"](https://docs.hu
* `camelCased`: Converts the string from snake_case to camelCase.
* `withParens`: If the string is not empty, surrounds it in parenthesis.
* `Array`:
* `joined`: Equivalent to `.joined(seperator: ", ")`
* `joined`: Equivalent to `.joined(separator: ", ")`
* `[Case]` (`cases`):
* `filterNoParams`: Filters-in the cases with no parameters.
* `filterWithParams`: Filters-in the cases with one or more parameters.
* `[Parameter]` (`parameters`):
* `names`: Returns a string-array of the names of the parameters.
* `names(parameters)` -> `[param1, param2, param3]`.
* `types`: Retunrs a string-array of the types of the parameters.
* `types`: Returns a string-array of the types of the parameters.
* Use with `joined`: `joined(types(parameters))` -> `(String, Int, Double)`.
* `isOptionals`: Retunrs a string-array of the types of the parameters.
* `isOptionals`: Returns a string-array of the types of the parameters.
* `isOptionals(parameters)` -> `[true, false, true]`.
* `namesAndTypes`: Returns a string-array where each element is equivalent to `"\(name): \(type)"`.
* Use with `joined`: `joined(namesAndTypes(parameters))` -> `(key: String)` or `(key: String, value: Int)`.
Expand Down

0 comments on commit b5d5980

Please sign in to comment.