Created
December 13, 2011 08:27
-
-
Save ainame/1471215 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'); | |
| // こうインデントさせたいのに | |
| var s1 = http.createServer(function(req, res){ | |
| res.end("hello world"); | |
| }); | |
| // こうなってしまう!! | |
| var s2 = http.createServer(function(req, res){ | |
| res.end("hello world"); | |
| }); | |
| // こう書けってことか? | |
| var s3 = http.createServer( | |
| function(req, res){ | |
| res.end("hello world"); | |
| } | |
| ); | |
| s2.listen(8000); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment