Browse Source

Fix typos. (#3956)

peisong 9 years ago
parent
commit
9c91190b40

+ 1 - 1
build/config.js

@@ -30,7 +30,7 @@ const builds = {
     env: 'production',
     banner
   },
-  // Runtime+compiler standalone developement build.
+  // Runtime+compiler standalone development build.
   'web-standalone-dev': {
     entry: path.resolve(__dirname, '../src/entries/web-runtime-with-compiler.js'),
     dest: path.resolve(__dirname, '../dist/vue.js'),

+ 1 - 1
src/core/observer/watcher.js

@@ -204,7 +204,7 @@ export default class Watcher {
   }
 
   /**
-   * Remove self from all dependencies' subcriber list.
+   * Remove self from all dependencies' subscriber list.
    */
   teardown () {
     if (this.active) {

+ 1 - 1
src/server/create-renderer.js

@@ -21,7 +21,7 @@ export function createRenderer ({
 } {
   if (process.env.VUE_ENV !== 'server') {
     warn(
-      'You are using createRenderer without setting VUE_ENV enviroment variable to "server". ' +
+      'You are using createRenderer without setting VUE_ENV environment variable to "server". ' +
       'It is recommended to set VUE_ENV=server this will help rendering performance, ' +
       'by turning data observation off.'
     )

+ 1 - 1
test/ssr/ssr-env.spec.js

@@ -39,7 +39,7 @@ describe('SSR: VUE_ENV=server', () => {
   it('should warn when not set', () => {
     process.env.VUE_ENV = ''
     createRenderer()
-    expect('You are using createRenderer without setting VUE_ENV enviroment').toHaveBeenWarned()
+    expect('You are using createRenderer without setting VUE_ENV environment').toHaveBeenWarned()
     process.env.VUE_ENV = 'server'
   })
 })

+ 1 - 1
test/unit/modules/vdom/modules/class.spec.js

@@ -2,7 +2,7 @@ import { patch } from 'web/runtime/patch'
 import VNode from 'core/vdom/vnode'
 
 describe('vdom class module', () => {
-  it('shuold create an element with staticClass', () => {
+  it('should create an element with staticClass', () => {
     const vnode = new VNode('p', { staticClass: 'class1' })
     const elm = patch(null, vnode)
     expect(elm).toHaveClass('class1')