Skip to content

Commit 9e1cec6

Browse files
authored
docs: fix typos (vuejs#309)
1 parent c09d1a5 commit 9e1cec6

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/.vuepress/components/community/team/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export const getPreferredLanguageCode = () => {
3636
/**
3737
* Calculates great-circle distances between the two points – that is, the shortest distance over the earth’s surface – using the Haversine formula.
3838
* @param {Number} lat1 The latitude of the 1st ___location.
39-
* @param {Number} lon1 The longitute of the 1st ___location.
39+
* @param {Number} lon1 The longitude of the 1st ___location.
4040
* @param {Number} lat2 The latitude of the 2nd ___location.
41-
* @param {Number} lon2 The longitute of the 2nd ___location.
41+
* @param {Number} lon2 The longitude of the 2nd ___location.
4242
*/
4343
export const getDistanceFromLatLonInKm = (lat1, lon1, lat2, lon2) => {
4444
const R = 6371 // Radius of the earth in km

src/.vuepress/markdown/highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports = fancyHighlight => {
6161
'directive-expression': {
6262
pattern: /^=(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,
6363
inside: {
64-
puntuation: [/^=/, /^["']|["']$/],
64+
punctuation: [/^=/, /^["']|["']$/],
6565
'inline-js language-js': {
6666
pattern: /.*/,
6767
inside: prism.languages.javascript

src/api/built-in-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
- `persisted` - `boolean`. If true, indicates this is a transition that doesn't actually insert/remove the element, but toggles the show / hidden status instead. The transition hooks are injected, but will be skipped by the renderer. Instead, a custom directive can control the transition by calling the injected hooks (e.g. `v-show`).
3131
- `css` - `boolean`. Whether to apply CSS transition classes. Defaults to `true`. If set to `false`, will only trigger JavaScript hooks registered via component events.
3232
- `type` - `string`. Specifies the type of transition events to wait for to determine transition end timing. Available values are `"transition"` and `"animation"`. By default, it will automatically detect the type that has a longer duration.
33-
- `mode` - `wtring` Controls the timing sequence of leaving/entering transitions. Available modes are `"out-in"` and `"in-out"`; defaults to simultaneous.
33+
- `mode` - `string` Controls the timing sequence of leaving/entering transitions. Available modes are `"out-in"` and `"in-out"`; defaults to simultaneous.
3434
- `duration` - `number | {`enter`: number,`leave`: number }`. Specifies the duration of transition. By default, Vue waits for the first `transitionend` or `animationend` event on the root transition element.
3535
- `enter-from-class` - `string`
3636
- `leave-from-class` - `string`

src/api/options-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
```
293293

294294
::: tip Note
295-
Events listed in the `emits` option **will not** be inherited by the root element of the component and also will be exlcluded from the `$attrs` property.
295+
Events listed in the `emits` option **will not** be inherited by the root element of the component and also will be excluded from the `$attrs` property.
296296
:::
297297

298298

src/guide/composition-api-provide-inject.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const MyBook = {
1919
setup() {
2020
const book = inject(
2121
'book',
22-
'Eloquent Javasctipt' /* optional default value */
22+
'Eloquent Javascript' /* optional default value */
2323
)
2424
return {
2525
book
@@ -46,7 +46,7 @@ const MyBook = {
4646
setup() {
4747
const book = inject(
4848
'book',
49-
'Eloquent Javasctipt' /* optional default value */
49+
'Eloquent Javascript' /* optional default value */
5050
)
5151
const year = inject('year')
5252

src/guide/migration/attribute-coercion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ We intend to drop this internal concept of "enumerated attributes" and treat the
4949

5050
For non-boolean attributes, Vue will stop removing them if they are `false` and coerce them to `'false'` instead.
5151

52-
- This solves the inconsistency between `true` and `false` and makes outputing `aria-*` attributes easier
52+
- This solves the inconsistency between `true` and `false` and makes outputting `aria-*` attributes easier
5353

5454
The following table describes the new behavior:
5555

src/guide/migration/keycode-modifiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ As a result, this means that `config.keyCodes` is now also deprecated and will n
4848

4949
## Migration Strategy
5050

51-
For those using `keyCode` in their codbase, we recommend converting them to their kebab-cased named equivalents.
51+
For those using `keyCode` in their codebase, we recommend converting them to their kebab-cased named equivalents.

src/guide/transitions-enterleave.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ Sometimes this works great, like when transitioning items are absolutely positio
512512
</p>
513513
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>
514514

515-
Sometimes this isn't an option, though, or we're dealing with more complex movement where in and out states need to be coordinated, so Vue offers an extremely useful utlity called **transition modes**:
515+
Sometimes this isn't an option, though, or we're dealing with more complex movement where in and out states need to be coordinated, so Vue offers an extremely useful utility called **transition modes**:
516516

517517
- `in-out`: New element transitions in first, then when complete, the current element transitions out.
518518
- `out-in`: Current element transitions out first, then when complete, the new element transitions in.

0 commit comments

Comments
 (0)