Skip to content

Commit

Permalink
Fixed a few typos in the docs (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjansen authored and ebussieres committed Jul 13, 2019
1 parent d462a21 commit 6c3a1a9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/orchid/resources/wiki/filter/abbreviate.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# `abbreviate`
The `abbrevate` filter will abbreviate a string using an ellipsis. It takes one argument which is the max
The `abbreviate` filter will abbreviate a string using an ellipsis. It takes one argument which is the max
width of the desired output including the length of the ellipsis.
```twig
{{ "this is a long sentence." | abbreviate(7) }}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/orchid/resources/wiki/filter/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In the following example, if `foo`, `bar`, or `baz` are null the output will bec
```twig
{{ foo.bar.baz | default("No baz") }}
```
Note that the default filter will suppress any `AttributeNotFoundException` exceptions that will usually be thrown when `strictVariables` is set to `true.
Note that the default filter will suppress any `AttributeNotFoundException` exceptions that will usually be thrown when `strictVariables` is set to `true`.

## Arguments
- default
2 changes: 1 addition & 1 deletion docs/src/orchid/resources/wiki/filter/first.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The `first` filter will return the first item of a collection, or the first letter of a string.
```twig
{{ users | first }}
{# will output the first item in the collection named 'user' #}
{# will output the first item in the collection named 'users' #}
{{ 'Mitch' | first }}
{# will output 'M' #}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/orchid/resources/wiki/filter/last.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
The `last` filter will return the last item of a collection, or the last letter of a string.
```twig
{{ users | last }}
{# will output the last item in the collection named 'user' #}
{# will output the last item in the collection named 'users' #}
{{ 'Mitch' | last }}
{# will output 'h' #}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/orchid/resources/wiki/filter/numberformat.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ The above example will output the following:
3.14
```

## Argumnets
## Arguments
- format
2 changes: 1 addition & 1 deletion docs/src/orchid/resources/wiki/filter/rsort.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `rsort`
The `rsort` filter will sort a list in reversed order. The items of the list must implement `Comparable`.
```twig
{% for user in users | sort %}
{% for user in users | rsort %}
{{ user.name }}
{% endfor %}
```
1 change: 1 addition & 0 deletions docs/src/orchid/resources/wiki/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
- [rsort](filter/rsort.md)
- [slice](filter/slice.md)
- [sort](filter/sort.md)
- [split](filter/split.md)
- [title](filter/title.md)
- [trim](filter/trim.md)
- [upper](filter/upper.md)
Expand Down

0 comments on commit 6c3a1a9

Please sign in to comment.