From 72d8ef62ad0241083f936ea862d21ed38e25e5af Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Wed, 26 Jul 2017 10:47:53 +0300 Subject: [PATCH 1/2] Update syntax.md --- src/v2/guide/syntax.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/v2/guide/syntax.md b/src/v2/guide/syntax.md index bd007defb1..18cfb51704 100644 --- a/src/v2/guide/syntax.md +++ b/src/v2/guide/syntax.md @@ -153,8 +153,7 @@ Filters can be chained: {{ message | filterA | filterB }} ``` -In this case, `filterA`, defined with a single argument, will recieve the value of `message`, and then the `filterB` function will be called with the result of `filterA` passed into `filterB`'s single argument. - +In this case, `filterA`, defined with a single argument, will recieve the value of `message`, and then the `filterB` function will be called with the result of `filterA` passed into `filterB`'s single argument. Filters are JavaScript functions, therefore they can take arguments: @@ -162,7 +161,7 @@ Filters are JavaScript functions, therefore they can take arguments: {{ message | filterA('arg1', arg2) }} ``` -Here `filterA` is defined as a function taking three arguments. The value of message will be passed into the first argument. The plain string `'arg1'` will be passed into the `filterA` as its second argument, and the value of expression `arg2` will be evaluated and passed in as the third argument.   +Here `filterA` is defined as a function taking three arguments. The value of `message` will be passed into the first argument. The plain string `'arg1'` will be passed into the `filterA` as its second argument, and the value of expression `arg2` will be evaluated and passed in as the third argument.   ## Shorthands From 4d3ca38cf1d0426291f5ea489ee0808f70e8deb5 Mon Sep 17 00:00:00 2001 From: Alexander Sokolov Date: Wed, 26 Jul 2017 14:54:47 +0300 Subject: [PATCH 2/2] Update syntax.md --- src/v2/guide/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/syntax.md b/src/v2/guide/syntax.md index 18cfb51704..e555533b4e 100644 --- a/src/v2/guide/syntax.md +++ b/src/v2/guide/syntax.md @@ -161,7 +161,7 @@ Filters are JavaScript functions, therefore they can take arguments: {{ message | filterA('arg1', arg2) }} ``` -Here `filterA` is defined as a function taking three arguments. The value of `message` will be passed into the first argument. The plain string `'arg1'` will be passed into the `filterA` as its second argument, and the value of expression `arg2` will be evaluated and passed in as the third argument.   +Here `filterA` is defined as a function taking three arguments. The value of `message` will be passed into the first argument. The plain string `'arg1'` will be passed into the `filterA` as its second argument, and the value of expression `arg2` will be evaluated and passed in as the third argument. ## Shorthands