Skip to content

Commit 231f4a5

Browse files
docs: typo in node.js example (#3205)
1 parent c0e86fa commit 231f4a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/essentials/history-mode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ const fs = require('fs')
5252
const httpPort = 80
5353

5454
http.createServer((req, res) => {
55-
fs.readFile('index.htm', 'utf-8', (err, content) => {
55+
fs.readFile('index.html', 'utf-8', (err, content) => {
5656
if (err) {
57-
     console.log('We cannot open "index.htm" file.')
57+
     console.log('We cannot open "index.html" file.')
5858
}
5959

6060
res.writeHead(200, {

0 commit comments

Comments
 (0)