Skip to content
Browse files

updated readme for new preferred style too

  • Loading branch information...
1 parent 6912d50 commit fe7baee7c3a4b228cf0d61a40f049f263fcd186e @substack substack committed Jul 21, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.markdown
View
8 README.markdown
@@ -54,7 +54,7 @@ Examples
Client and Server
-----------------
- var DNode = require('dnode').DNode;
+ var DNode = require('dnode');
var sys = require('sys');
// server-side:
@@ -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;
@@ -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:
@@ -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');

0 comments on commit fe7baee

Please sign in to comment.
Something went wrong with that request. Please try again.