Skip to content

Commit

Permalink
update should be updateMany in second example.
Browse files Browse the repository at this point in the history
added "../lib" path to requiring buffer_ieee754, was breaking otherwise.
  • Loading branch information
christopher holt committed Oct 17, 2011
1 parent 84cb243 commit 0e006ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ hoard.update('users.hoard', 1337, 1311169605, function(err) {
// Update multiple values at once in an existing Hoard file.
// This function is much faster when dealing with multiple values
// that need to be written at once.
hoard.update('users.hoard', [[1312490305, 4976], [1312492105, 3742]], function(err) {
hoard.updateMany('users.hoard', [[1312490305, 4976], [1312492105, 3742]], function(err) {
if (err) throw err;
console.log('Hoard file updated!');
});
Expand Down
2 changes: 1 addition & 1 deletion src/hoard.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ create = (filename, archives, xFilesFactor, cb) ->
# Using 'buffer_ieee754' from node 0.5.x
# as no libraries had a working IEEE754 encoder
buffer = new Buffer(4)
require('buffer_ieee754').writeIEEE754(buffer, 0.5, 0, 'big', 23, 4);
require('../lib/buffer_ieee754').writeIEEE754(buffer, 0.5, 0, 'big', 23, 4);
buffer

buffer = Put()
Expand Down

0 comments on commit 0e006ad

Please sign in to comment.