Skip to content

Commit

Permalink
s/127/128/
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 9, 2010
1 parent a6fc0d6 commit 5fcb3f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Replace Negative Numbers
var fixed = Traverse([
5, 6, -3, [ 7, 8, -2, 1 ], { f : 10, g : -13 }
]).modify(function (x) {
if (x < 0) this.update(x + 127);
if (x < 0) this.update(x + 128);
}).get()
sys.puts(sys.inspect(fixed));

Expand Down
2 changes: 1 addition & 1 deletion examples/negative.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ var Traverse = require('traverse').Traverse;
var fixed = Traverse([
5, 6, -3, [ 7, 8, -2, 1 ], { f : 10, g : -13 }
]).modify(function (x) {
if (x < 0) this.update(x + 127);
if (x < 0) this.update(x + 128);
}).get()
sys.puts(sys.inspect(fixed));

0 comments on commit 5fcb3f5

Please sign in to comment.