Skip to content

Commit 1418474

Browse files
Fix a simple spelling error 'occured' -> 'occurred' (#3737)
* Firestore Externs: @type -> @typedef * Fix spelling
1 parent d90ddd7 commit 1418474

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/messaging/src/util/errors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export const ERROR_MAP: ErrorMap<ErrorCode> = {
5353
[ErrorCode.FAILED_DEFAULT_REGISTRATION]:
5454
'We are unable to register the default service worker. {$browserErrorMessage}',
5555
[ErrorCode.TOKEN_SUBSCRIBE_FAILED]:
56-
'A problem occured while subscribing the user to FCM: {$errorInfo}',
56+
'A problem occurred while subscribing the user to FCM: {$errorInfo}',
5757
[ErrorCode.TOKEN_SUBSCRIBE_NO_TOKEN]:
5858
'FCM returned no token when subscribing the user to push.',
5959
[ErrorCode.TOKEN_UNSUBSCRIBE_FAILED]:
60-
'A problem occured while unsubscribing the ' +
60+
'A problem occurred while unsubscribing the ' +
6161
'user from FCM: {$errorInfo}',
6262
[ErrorCode.TOKEN_UPDATE_FAILED]:
63-
'A problem occured while updating the user from FCM: {$errorInfo}',
63+
'A problem occurred while updating the user from FCM: {$errorInfo}',
6464
[ErrorCode.TOKEN_UPDATE_NO_TOKEN]:
6565
'FCM returned no token when updating the user to push.',
6666
[ErrorCode.USE_SW_AFTER_GET_TOKEN]:

packages/rxfire/docs/database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ ref.push({ name: 'David' });
121121

122122
stateChanges(ref).subscribe(change => {
123123
const { event, snapshot, prevKey } = change;
124-
console.log(event, ' the event type that just occured');
124+
console.log(event, ' the event type that just occurred');
125125
console.log(snapshot.val(), ' the value of the change');
126126
});
127127

packages/rxfire/docs/firestore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ collectionChanges(collectionRef, ['added'])
145145
```
146146

147147
### `sortedChanges()`
148-
The `sortedChanges()` function creates an observable that emits the reduced state of individual changes. This is different than the collection function in that it creates an array out of every individual change to occur. It also contains the `type` property to indicate what kind of change occured. The optional `events` parameter will filter which child events populate the array.
148+
The `sortedChanges()` function creates an observable that emits the reduced state of individual changes. This is different than the collection function in that it creates an array out of every individual change to occur. It also contains the `type` property to indicate what kind of change occurred. The optional `events` parameter will filter which child events populate the array.
149149

150150
| | |
151151
|-----------------|------------------------------------------|

packages/rxfire/test/firestore.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ describe('RxFire Firestore', () => {
216216
describe('auditTrail', () => {
217217
/**
218218
* The `auditTrail()` method returns an array of every change that has
219-
* occured in the application. This test seeds two "people" into the
219+
* occurred in the application. This test seeds two "people" into the
220220
* collection and checks that the two added events are there. It then
221221
* modifies a "person" and makes sure that event is on the array as well.
222222
*/
@@ -265,7 +265,7 @@ describe('RxFire Firestore', () => {
265265
describe('auditTrail', () => {
266266
/**
267267
* The `auditTrail()` method returns an array of every change that has
268-
* occured in the application. This test seeds two "people" into the
268+
* occurred in the application. This test seeds two "people" into the
269269
* collection and checks that the two added events are there. It then
270270
* modifies a "person" and makes sure that event is on the array as well.
271271
*/

0 commit comments

Comments
 (0)