Skip to content

Commit 2e1ad5d

Browse files
authored
docs: fix index.md to avoid horizontal scrolling in code (#2129)
* Fix: index.md - split comment to avoid horizontal scrolling * docs: fix index.md to avoid horizontal scrolling
1 parent 531313e commit 2e1ad5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/docs/guide/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ Creating a Single-page Application with Vue + Vue Router feels natural: with Vue
1717
<p>
1818
<!-- use the router-link component for navigation. -->
1919
<!-- specify the link by passing the `to` prop. -->
20-
<!-- `<router-link>` will render an `<a>` tag with the correct `href` attribute -->
20+
<!-- `<router-link>` will render an `<a>` tag with -->
21+
<!-- the correct `href` attribute -->
2122
<router-link to="/">Go to Home</router-link>
2223
<router-link to="/about">Go to About</router-link>
2324
</p>
@@ -57,7 +58,8 @@ const routes = [
5758
// You can pass in additional options here, but let's
5859
// keep it simple for now.
5960
const router = VueRouter.createRouter({
60-
// 4. Provide the history implementation to use. We are using the hash history for simplicity here.
61+
// 4. Provide the history implementation to use. We
62+
// are using the hash history for simplicity here.
6163
history: VueRouter.createWebHashHistory(),
6264
routes, // short for `routes: routes`
6365
})

0 commit comments

Comments
 (0)