Skip to content
Browse files

fixed example in README

  • Loading branch information...
1 parent ce87db5 commit c310280a79a791adf650a2f0b564a7e4d5b1c3ac goobsoft committed Sep 30, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.TXT
View
6 README.TXT
@@ -62,11 +62,11 @@ Database db = s.getDatabase("foodb");
Document doc = db.getDocument("documentid1234");
doc.put("foo","bar");
-db.save(doc);
+db.saveDocument(doc);
Document newdoc = new Document();
-doc.put("foo","baz");
-db.save(doc); // auto-generated id given by the database
+newdoc.put("foo","baz");
+db.saveDocument(newdoc); // auto-generated id given by the database
// Running a view

0 comments on commit c310280

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