Skip to content

Commit

Permalink
Fix typos (vuejs#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon93s authored and sdras committed Mar 31, 2018
1 parent b722457 commit 364b8aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/v2/cookbook/using-axios-to-consume-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ You can hit the rerun button on this pen to see the loading status briefly while
<p data-height="300" data-theme-id="32763" data-slug-hash="6c01922c9af3883890fd7393e8147ec4" data-default-tab="result" data-user="Vue" data-embed-version="2" data-pen-title="Fourth Step Axios and Vue" class="codepen">See the Pen <a href="https://codepen.io/team/Vue/pen/6c01922c9af3883890fd7393e8147ec4/">Fourth Step Axios and Vue</a> by Vue (<a href="https://codepen.io/Vue">@Vue</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

This can be even futher improved with the use of components for different sections and more distinct error reporting, depending on the API you're using and the complexity of your application.
This can be even further improved with the use of components for different sections and more distinct error reporting, depending on the API you're using and the complexity of your application.

## Alternative Patterns

Expand Down
2 changes: 1 addition & 1 deletion src/v2/guide/components-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ If you're not using a module system with `import`/`require`, you can probably sk

If you're still here, then it's likely you're using a module system, such as with Babel and Webpack. In these cases, we recommend creating a `components`, with each component in its own file.

Then you'll need to import each component you'd like to use, before you locally register it. For example, in a hypothetical `CompononentB.js` or `ComponentB.vue` file:
Then you'll need to import each component you'd like to use, before you locally register it. For example, in a hypothetical `ComponentB.js` or `ComponentB.vue` file:

```js
import ComponentA from './ComponentA'
Expand Down
4 changes: 2 additions & 2 deletions themes/vue/source/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@
.replace(rControl, '')
// Replace special characters
.replace(rSpecial, separator)
// Remove continous separators
// Remove continuous separators
.replace(new RegExp(escapedSep + '{2,}', 'g'), separator)
// Remove prefixing and trailing separtors
// Remove prefixing and trailing separators
.replace(new RegExp('^' + escapedSep + '+|' + escapedSep + '+$', 'g'), '')

switch (options.transform) {
Expand Down

0 comments on commit 364b8aa

Please sign in to comment.