Skip to content

Commit

Permalink
Minor typo corrections in examples. (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
NatalieWolfe authored and yunong committed Dec 18, 2017
1 parent 55e31d4 commit 74e0cf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/_api/server.md
Expand Up @@ -81,8 +81,8 @@ routes and handlers for incoming requests.
var restify = require('restify');
var server = restify.createServer();

srv.listen(8080, function () {
console.log('ready on %s', srv.url);
server.listen(8080, function () {
console.log('ready on %s', server.url);
});
```

Expand Down Expand Up @@ -135,10 +135,10 @@ Creates a new Server.

```javascript
var restify = require('restify');
var server = restify.createServer();
var server = new restify.Server();

srv.listen(8080, function () {
console.log('ready on %s', srv.url);
server.listen(8080, function () {
console.log('ready on %s', server.url);
});
```

Expand Down

0 comments on commit 74e0cf5

Please sign in to comment.