8000 Small refactor of `count + knife` to `1 knife` by juukie · Pull Request #433 · vuejs/v2.vuejs.org · GitHub
[go: up one dir, main page]

Skip to content

Small refactor of count + knife to 1 knife #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Small refactor of count + knife > 1 knife
  • Loading branch information
juukie authored Oct 1, 2016
commit 146f44aea5bf14eb806ae63c712d9e7182f38564
2 changes: 1 addition & 1 deletion src/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ function pluralizeKnife (count) {
if (count === 0) {
return 'no knives'
} else if (count === 1) {
return count + 'knife'
return '1 knife'
} else {
return count + 'knives'
}
Expand Down
0