From 6c3a1a91c59b144fb149bb19dc2a52643a9ef7ca Mon Sep 17 00:00:00 2001 From: Bastien Jansen Date: Sat, 13 Jul 2019 16:22:05 +0200 Subject: [PATCH] Fixed a few typos in the docs (#452) --- docs/src/orchid/resources/wiki/filter/abbreviate.md | 2 +- docs/src/orchid/resources/wiki/filter/default.md | 2 +- docs/src/orchid/resources/wiki/filter/first.md | 2 +- docs/src/orchid/resources/wiki/filter/last.md | 2 +- docs/src/orchid/resources/wiki/filter/numberformat.md | 2 +- docs/src/orchid/resources/wiki/filter/rsort.md | 2 +- docs/src/orchid/resources/wiki/summary.md | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/src/orchid/resources/wiki/filter/abbreviate.md b/docs/src/orchid/resources/wiki/filter/abbreviate.md index e52fe21d5..974fbb8de 100644 --- a/docs/src/orchid/resources/wiki/filter/abbreviate.md +++ b/docs/src/orchid/resources/wiki/filter/abbreviate.md @@ -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) }} diff --git a/docs/src/orchid/resources/wiki/filter/default.md b/docs/src/orchid/resources/wiki/filter/default.md index 8fd5fa45d..d1ccc591b 100644 --- a/docs/src/orchid/resources/wiki/filter/default.md +++ b/docs/src/orchid/resources/wiki/filter/default.md @@ -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 diff --git a/docs/src/orchid/resources/wiki/filter/first.md b/docs/src/orchid/resources/wiki/filter/first.md index 282ac20e8..7ebb1fa98 100644 --- a/docs/src/orchid/resources/wiki/filter/first.md +++ b/docs/src/orchid/resources/wiki/filter/first.md @@ -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' #} diff --git a/docs/src/orchid/resources/wiki/filter/last.md b/docs/src/orchid/resources/wiki/filter/last.md index 67015b51f..8865685bd 100644 --- a/docs/src/orchid/resources/wiki/filter/last.md +++ b/docs/src/orchid/resources/wiki/filter/last.md @@ -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' #} diff --git a/docs/src/orchid/resources/wiki/filter/numberformat.md b/docs/src/orchid/resources/wiki/filter/numberformat.md index c88aed112..71e9eb926 100644 --- a/docs/src/orchid/resources/wiki/filter/numberformat.md +++ b/docs/src/orchid/resources/wiki/filter/numberformat.md @@ -8,5 +8,5 @@ The above example will output the following: 3.14 ``` -## Argumnets +## Arguments - format \ No newline at end of file diff --git a/docs/src/orchid/resources/wiki/filter/rsort.md b/docs/src/orchid/resources/wiki/filter/rsort.md index cd27774d8..d0f051eee 100644 --- a/docs/src/orchid/resources/wiki/filter/rsort.md +++ b/docs/src/orchid/resources/wiki/filter/rsort.md @@ -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 %} ``` \ No newline at end of file diff --git a/docs/src/orchid/resources/wiki/summary.md b/docs/src/orchid/resources/wiki/summary.md index d672e975a..ef3a96233 100644 --- a/docs/src/orchid/resources/wiki/summary.md +++ b/docs/src/orchid/resources/wiki/summary.md @@ -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)