Skip to content

Commit 3bce1a3

Browse files
stakxsdras
authored andcommitted
Fix a few typos (vuejs#1466)
1 parent 3e9417d commit 3bce1a3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/_posts/012-release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ There are also additional props-related improvements such as explicit one-time o
2525

2626
### Filter Arguments Improvements
2727

28-
In 0.11, filters always receive their arguments as plain strings. An argument can be enclosed in quotes to include whitespace, but the quotes are not automatically stripped when passed into the filter function. Some users were also confused about how to retrive a dynamic value on the vm instead of a plain string.
28+
In 0.11, filters always receive their arguments as plain strings. An argument can be enclosed in quotes to include whitespace, but the quotes are not automatically stripped when passed into the filter function. Some users were also confused about how to retrieve a dynamic value on the vm instead of a plain string.
2929

3030
In 0.12, the filter argument syntax now follows a simple rule: if an argument is enclosed in quotes, it will be passed in as a plain string; otherwise, it will be evaluated against the current vm as a dynamic value.
3131

src/perf/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Performance Comparisons
88
99
Looking for the TodoMVC Benchmark? It's been removed because after discussion with some other framework authors we have agreed that:
1010

11-
1. The original intention of these benchmarks were for comparing Browser performance rather than that of frameworks. The "synchrorously trigger an action xxx times" test routine doesn't reflect meaningful real world user actions.
11+
1. The original intention of these benchmarks were for comparing Browser performance rather than that of frameworks. The "synchronously trigger an action xxx times" test routine doesn't reflect meaningful real world user actions.
1212

1313
2. Due to internal implementation differences, frameworks that uses async rendering (e.g. Vue, Om, Mercury) gains the advantage by skipping part of the calculations that happened in the same event loop. The real world user experience doesn't demonstrate such dramatic difference.
1414

src/v2/cookbook/editable-svg-icons.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default {
143143
}
144144
```
145145

146-
We're applying `refs` to the groups of paths we need to move, and as both sides of the scissors have to move in tandem, we'll create a funciton we can reuse where we'll pass in the `refs`. The use of GreenSock helps resolve animation support and transform-origin issues across browser.
146+
We're applying `refs` to the groups of paths we need to move, and as both sides of the scissors have to move in tandem, we'll create a function we can reuse where we'll pass in the `refs`. The use of GreenSock helps resolve animation support and transform-origin issues across browser.
147147

148148
<p data-height="300" data-theme-id="0" data-slug-hash="dJRpgY" data-default-tab="result" data-user="Vue" data-embed-version="2" data-pen-title="Editable SVG Icon System: Animated icon" class="codepen">See the Pen <a href="https://codepen.io/team/Vue/pen/dJRpgY/">Editable SVG Icon System: Animated icon</a> by Vue (<a href="https://codepen.io/Vue">@Vue</a>) on <a href="https://codepen.io">CodePen</a>.</p><script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
149149

@@ -153,7 +153,7 @@ You can see more animated examples in the repo [here](https://github.com/sdras/v
153153

154154
## Additional Notes
155155

156-
Designers may change their minds. Product requirements change. Keeping the logic for the entire icon system in one base component means you can quickly update all of your icons and have it propogate through the whole system. Even with the use of an icon loader, some situations require you to recreate or edit every SVG to make global changes. This method can save you that time and pain.
156+
Designers may change their minds. Product requirements change. Keeping the logic for the entire icon system in one base component means you can quickly update all of your icons and have it propagate through the whole system. Even with the use of an icon loader, some situations require you to recreate or edit every SVG to make global changes. This method can save you that time and pain.
157157

158158
## When To Avoid This Pattern
159159

src/v2/cookbook/unit-testing-vue-components.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Let's take a look at the component code first:
106106
<div class="message">
107107
{{ message }}
108108
</div>
109-
Enter your username: <input v-model="usernane">
109+
Enter your username: <input v-model="username">
110110
<div
111111
v-if="error"
112112
class="error"
@@ -141,7 +141,7 @@ The things that we should test are:
141141
- if `error` is `true`, `<div class="error"`> should be present
142142
- if `error` is `false`, `<div class="error"`> should not be present
143143

144-
And our first attempt at at test:
144+
And our first attempt at test:
145145

146146
```js
147147
import { shallow } from 'vue-test-utils'
@@ -176,7 +176,7 @@ The below example improves the test by:
176176
- only making one assertion per `it` block
177177
- having short, clear test descriptions
178178
- providing only the minimum data requires for the test
179-
- refactoring duplucated logic (creating the `wrapper` and setting the `username` variable) into a factory function
179+
- refactoring duplicated logic (creating the `wrapper` and setting the `username` variable) into a factory function
180180

181181
*Updated test*:
182182
```js
@@ -222,7 +222,7 @@ At the top, we declare the factory function which merges the `values` object int
222222

223223
## Additional Context
224224

225-
Thee above test is fairly simple, but in practise Vue components often have other behaviors you want to test, such as:
225+
The above test is fairly simple, but in practice Vue components often have other behaviors you want to test, such as:
226226

227227
- making API calls
228228
- committing or dispatching mutations or actions with a `Vuex` store

src/v2/style-guide/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ components/
693693

694694
**Filenames of [single-file components](../guide/single-file-components.html) should either be always PascalCase or always kebab-case.**
695695

696-
PascalCase works best with autocompletion in code editors, as it's consistent with how we reference components in JS(X) and templates, wherever possible. However, mixed case filenames can sometimes create issues on case-insensitive filesystems, which is why kebab-case is also perfectly acceptable.
696+
PascalCase works best with autocompletion in code editors, as it's consistent with how we reference components in JS(X) and templates, wherever possible. However, mixed case filenames can sometimes create issues on case-insensitive file systems, which is why kebab-case is also perfectly acceptable.
697697

698698
{% raw %}<div class="style-example example-bad">{% endraw %}
699699
#### Bad

0 commit comments

Comments
 (0)