Skip to content

Commit

Permalink
docs: typo in node.js example (#3205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Chang1114 committed May 20, 2020
1 parent c0e86fa commit 231f4a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/essentials/history-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ const fs = require('fs')
const httpPort = 80

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

res.writeHead(200, {
Expand Down

0 comments on commit 231f4a5

Please sign in to comment.