Skip to content

Commit 4dd4a4a

Browse files
Alex-Sokolovchrisvfritz
authored andcommitted
Update syntax.md (vuejs#1048)
* Update syntax.md * Update syntax.md
1 parent 9bd9e0e commit 4dd4a4a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/v2/guide/syntax.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,15 @@ Filters can be chained:
153153
{{ message | filterA | filterB }}
154154
```
155155

156-
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.
157-
156+
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.
158157

159158
Filters are JavaScript functions, therefore they can take arguments:
160159

161160
``` html
162161
{{ message | filterA('arg1', arg2) }}
163162
```
164163

165-
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.  
164+
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.
166165

167166
## Shorthands
168167

0 commit comments

Comments
 (0)