Skip to content

Commit 9419ffd

Browse files
darrylheinAkryum
authored andcommitted
docs: Minor spelling correction (#635)
* spelling correction * spelling correction * spelling correction * spelling correction * spelling correction * spelling correction * spelling correction * spelling correction * spelling correction
1 parent 0477e88 commit 9419ffd

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

docs/api/apollo-mutation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Example:
1919
>
2020
<template v-slot="{ mutate, loading, error }">
2121
<button :disabled="loading" @click="mutate()">Click me</button>
22-
<p v-if="error">An error occured: {{ error }}</p>
22+
<p v-if="error">An error occurred: {{ error }}</p>
2323
</template>
2424
</ApolloMutation>
2525
```

docs/api/apollo-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Example:
1616
<div v-if="isLoading" class="loading apollo">Loading...</div>
1717
1818
<!-- Error -->
19-
<div v-else-if="error" class="error apollo">An error occured</div>
19+
<div v-else-if="error" class="error apollo">An error occurred</div>
2020
2121
<!-- Result -->
2222
<div v-else-if="data" class="result apollo">{{ data.hello }}</div>

docs/guide/components/mutation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here is an example:
2121
>
2222
<template v-slot="{ mutate, loading, error }">
2323
<button :disabled="loading" @click="mutate()">Click me</button>
24-
<p v-if="error">An error occured: {{ error }}</p>
24+
<p v-if="error">An error occurred: {{ error }}</p>
2525
</template>
2626
</ApolloMutation>
2727
```

docs/guide/components/query.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Inside the default slot of `ApolloQuery`, you can access various slot data about
3434
<div v-if="loading" class="loading apollo">Loading...</div>
3535
3636
<!-- Error -->
37-
<div v-else-if="error" class="error apollo">An error occured</div>
37+
<div v-else-if="error" class="error apollo">An error occurred</div>
3838
3939
<!-- Result -->
4040
<div v-else-if="data" class="result apollo">{{ data.hello }}</div>
@@ -74,7 +74,7 @@ export default {
7474
<div v-if="loading" class="loading apollo">Loading...</div>
7575
7676
<!-- Error -->
77-
<div v-else-if="error" class="error apollo">An error occured</div>
77+
<div v-else-if="error" class="error apollo">An error occurred</div>
7878
7979
<!-- Result -->
8080
<div v-else-if="data" class="result apollo">{{ data.hello }}</div>
@@ -155,7 +155,7 @@ An alternative way of using the component is by creating separate `.gql` files.
155155
<div v-if="loading" class="loading apollo">Loading...</div>
156156
157157
<!-- Error -->
158-
<div v-else-if="error" class="error apollo">An error occured</div>
158+
<div v-else-if="error" class="error apollo">An error occurred</div>
159159
160160
<!-- Result -->
161161
<div v-else-if="data" class="result apollo">{{ data.hello }}</div>
@@ -424,4 +424,4 @@ export default {
424424
}
425425
}
426426
</script>
427-
```
427+
```

docs/zh-cn/api/apollo-mutation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
>
2020
<template v-slot="{ mutate, loading, error }">
2121
<button :disabled="loading" @click="mutate()">Click me</button>
22-
<p v-if="error">An error occured: {{ error }}</p>
22+
<p v-if="error">An error occurred: {{ error }}</p>
2323
</template>
2424
</ApolloMutation>
2525
```

docs/zh-cn/api/apollo-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div v-if="isLoading" class="loading apollo">Loading...</div>
1717
1818
<!-- Error -->
19-
<div v-else-if="error" class="error apollo">An error occured</div>
19+
<div v-else-if="error" class="error apollo">An error occurred</div>
2020
2121
<!-- Result -->
2222
<div v-else-if="data" class="result apollo">{{ data.hello }}</div>

docs/zh-cn/guide/components/mutation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
>
2222
<template v-slot="{ mutate, loading, error }">
2323
<button :disabled="loading" @click="mutate()">Click me</button>
24-
<p v-if="error">An error occured: {{ error }}</p>
24+
<p v-if="error">An error occurred: {{ error }}</p>
2525
</template>
2626
</ApolloMutation>
2727
```

src/components/ApolloQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default {
152152
result = Object.assign({}, result)
153153

154154
if (errors && errors.length) {
155-
error = new Error(`Apollo errors occured (${errors.length})`)
155+
error = new Error(`Apollo errors occurred (${errors.length})`)
156156
error.graphQLErrors = errors
157157
}
158158

src/smart-apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default class SmartApollo {
172172
} else if (error.networkError) {
173173
console.error(`Error sending the ${this.type} '${this.key}'`, error.networkError)
174174
} else {
175-
console.error(`[vue-apollo] An error has occured for ${this.type} '${this.key}'`)
175+
console.error(`[vue-apollo] An error has occurred for ${this.type} '${this.key}'`)
176176
if (Array.isArray(error)) {
177177
console.error(...error)
178178
} else {

0 commit comments

Comments
 (0)