Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a few typos in the docs #452

Merged
merged 1 commit into from
Jul 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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