]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: fix typos (#1389)
authorSharon Lau <sharonytlau@gmail.com>
Tue, 3 May 2022 08:03:35 +0000 (16:03 +0800)
committerGitHub <noreply@github.com>
Tue, 3 May 2022 08:03:35 +0000 (10:03 +0200)
* docs: fix typo in an code example

* docs: fix a typo

docs/guide/essentials/navigation.md
docs/guide/essentials/route-matching-syntax.md

index af868da196b6e829d19f137bf7d354963ae7ec81..6d16639aca07244bc753b34abad2c7ec6b245ee3 100644 (file)
@@ -60,7 +60,7 @@ When specifying `params`, make sure to either provide a `string` or `number` (or
 
 Since the prop `to` accepts the same kind of object as `router.push`, the exact same rules apply to both of them.
 
-`router.push` and all the other navigation methods return a _Promise_ that allows us to wait til the navigation is finished and to know if it succeeded or failed. We will talk more about that in [Navigation Handling](../advanced/navigation-failures.md).
+`router.push` and all the other navigation methods return a _Promise_ that allows us to wait till the navigation is finished and to know if it succeeded or failed. We will talk more about that in [Navigation Handling](../advanced/navigation-failures.md).
 
 ## Replace current location
 
index b1130363e0b42495ce659770df57fc742faa00b2..52f8812a7397ef1808738d80bf8910cf0810e961 100644 (file)
@@ -94,7 +94,7 @@ const router = createRouter({
     { path: '/users/:id', sensitive: true },
     // will match /users, /Users, and /users/42 but not /users/ or /users/42/
     { path: '/users/:id?' },
-  ]
+  ],
   strict: true, // applies to all routes
 })
 ```