Skip to content

Commit 0eed107

Browse files
authored
Fix invalid markdown lang (#42442)
x-ref: [slack thread](https://vercel.slack.com/archives/C02F56A54LU/p1667507770684919) ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
1 parent 1f55ba3 commit 0eed107

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/basic-features/font-optimization.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,18 @@ export default function MyApp({ Component, pageProps }) {
9191

9292
To use the font on a single page, add it to the specific page as shown below:
9393

94-
```js:pages/index.js
95-
import { Inter } from '@next/font/google';
94+
```js
95+
// pages/index.js
96+
import { Inter } from '@next/font/google'
9697

97-
const inter = Inter();
98+
const inter = Inter()
9899

99100
export default function Home() {
100101
return (
101102
<div className={inter.className}>
102103
<p>Hello World</p>
103104
</div>
104-
);
105+
)
105106
}
106107
```
107108

0 commit comments

Comments
 (0)