Skip to content

Commit 7d2e60e

Browse files
Jinjiangposva
authored andcommitted
[en] typos (#1780)
* [en] typos * Update lazy-loading.md
1 parent 10b7de7 commit 7d2e60e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: docs/en/essentials/history-mode.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,24 @@ location / {
4343
#### Native Node.js
4444

4545
```js
46-
const http = require("http")
47-
const fs = require("fs")
46+
const http = require('http')
47+
const fs = require('fs')
4848
const httpPort = 80
4949

5050
http.createServer((req, res) => {
51-
fs.readFile("index.htm", "utf-8", (err, content) => {
51+
fs.readFile('index.htm', 'utf-8', (err, content) => {
5252
if (err) {
53-
console.log('We cannot open "index.htm" file.')
53+
console.log('We cannot open 'index.htm' file.')
5454
}
5555

5656
res.writeHead(200, {
57-
"Content-Type": "text/html; charset=utf-8"
57+
'Content-Type': 'text/html; charset=utf-8'
5858
})
5959

6060
res.end(content)
6161
})
6262
}).listen(httpPort, () => {
63-
console.log("Server listening on: http://localhost:%s", httpPort)
63+
console.log('Server listening on: http://localhost:%s', httpPort)
6464
})
6565
```
6666

0 commit comments

Comments
 (0)