Skip to content

Commit

Permalink
updated readme for new preferred style too
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 21, 2010
1 parent 6912d50 commit fe7baee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Examples
Client and Server
-----------------

var DNode = require('dnode').DNode;
var DNode = require('dnode');
var sys = require('sys');

// server-side:
Expand All @@ -76,7 +76,7 @@ The DNode.sync() function adds a callback as the last argument to a function for
functions that return explicitly. This callback is called with the return value.

// server-side:
var DNode = require('dnode').DNode;
var DNode = require('dnode');
DNode({
timesTen : DNode.sync(function (n) {
return n * 10;
Expand All @@ -94,7 +94,7 @@ server provides methods for the client to call. The server can get at the
client's methods by passing a constructor to DNode() that will be passed the
client handle as the first argument.

var DNode = require('dnode').DNode;
var DNode = require('dnode');
var sys = require('sys');

// server-side:
Expand Down Expand Up @@ -146,7 +146,7 @@ Here's a complete web example:

### web.js

var DNode = require('dnode').DNode;
var DNode = require('dnode');
var sys = require('sys');
var fs = require('fs');
var http = require('http');
Expand Down

0 comments on commit fe7baee

Please sign in to comment.