Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Vorbach <paul@vorb.de>2012-02-18 04:40:26 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-02-18 05:05:12 +0400
commitc1f474010e8e58793408fc1d8303aeb1a01ba735 (patch)
treea05fda4f75c612520d5821c86cb6ea3fff83849d /doc/index.html
parent23c4278e0694c6c2cca3dc4f917f9ce74be64f40 (diff)
docs: fix quotation style in the webserver example
Replace " by '
Diffstat (limited to 'doc/index.html')
-rw-r--r--doc/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/index.html b/doc/index.html
index 5db25391b15..06b04026a99 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -157,7 +157,7 @@ var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
-}).listen(1337, "127.0.0.1");
+}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');</pre>
<p>To run the server, put the code into a file <code>example.js</code> and execute it with the <code>node</code> program:</p>
@@ -171,11 +171,11 @@ Server running at http://127.0.0.1:1337/</pre>
var net = require('net');
var server = net.createServer(function (socket) {
- socket.write("Echo server\r\n");
+ socket.write('Echo server\r\n');
socket.pipe(socket);
});
-server.listen(1337, "127.0.0.1");</pre>
+server.listen(1337, '127.0.0.1');</pre>
<!-- <p>Ready to dig in? <a href="">Download the latest version</a> of node.js or learn how other organizations are <a href="">using the technology</a>.</p> -->
</div>