Skip to content

Commit

Permalink
chore: fix tag name in compiler/parser/index.js (#9165)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinshutu authored and yyx990803 committed Dec 11, 2018
1 parent 3d44937 commit 8fccd82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/parser/index.js
Expand Up @@ -340,7 +340,7 @@ function processKey (el) {
const parent = el.parent
if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
warn(
`Do not use v-for index as key on <transtion-group> children, ` +
`Do not use v-for index as key on <transition-group> children, ` +
`this is the same as not using keys.`
)
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/compiler/parser.spec.js
Expand Up @@ -250,7 +250,7 @@ describe('parser', () => {
</transition-group>
</div>
`, baseOptions)
expect('Do not use v-for index as key on <transtion-group> children').toHaveBeenWarned()
expect('Do not use v-for index as key on <transition-group> children').toHaveBeenWarned()
})

it('v-pre directive', () => {
Expand Down

0 comments on commit 8fccd82

Please sign in to comment.