diff --git a/src/v2/guide/syntax.md b/src/v2/guide/syntax.md index bd007defb1..e555533b4e 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