Skip to content

Commit 5959049

Browse files
Change variable name db to firestore and grammar fixes.
Change variable name db to restore and grammar fixes. It's one of starting to pull requests of my open-source contributions consider this pull request. I am a daily viewer of Fireship for more than a year and now making a pull request in one one of your open-source projects.
1 parent fc380cd commit 5959049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/guide/start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm i sveltefire firebase
1818

1919
### 2. Initialize
2020

21-
Initialize Firebase and add the `FirebaseApp` component to the component tree. Typically, this is done in the root `+layout.svelte` file to access Firebase in all pages.
21+
Initialize Firebase and add the `FirebaseApp` component to the component tree. Typically, this is done in the root `+layout.svelte` file to access Firebase on all pages.
2222

2323
#### +layout.svelte
2424
```svelte
@@ -30,7 +30,7 @@ Initialize Firebase and add the `FirebaseApp` component to the component tree. T
3030
3131
// Initialize Firebase
3232
const app = initializeApp(/* your firebase config */);
33-
const db = getFirestore(app);
33+
const firestore = getFirestore(app);
3434
const auth = getAuth(app);
3535
</script>
3636

0 commit comments

Comments
 (0)