From ad6bb41b9395d65b46bfc86adeffa8f953cd0133 Mon Sep 17 00:00:00 2001 From: janndriessen Date: Mon, 22 Jun 2020 14:02:31 +0200 Subject: [PATCH] docs(storage): fix minor typo in storage docs (#3807) The `putFile` docs referenced the wrong variable in the first example --- docs/storage/usage/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/storage/usage/index.md b/docs/storage/usage/index.md index 561e7c7e..30d1b885 100644 --- a/docs/storage/usage/index.md +++ b/docs/storage/usage/index.md @@ -103,7 +103,7 @@ such as the current upload progress: const task = reference.putFile(pathToFile); task.on('state_changed', taskSnapshot => { - console.log(`${taskSnapshot.bytesTransferred} transferred out of ${task.totalBytes}`); + console.log(`${taskSnapshot.bytesTransferred} transferred out of ${taskSnapshot.totalBytes}`); }); task.then(() => {