diff --git a/README.markdown b/README.markdown index 0fe8ae6..f12f6ed 100644 --- a/README.markdown +++ b/README.markdown @@ -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)); diff --git a/examples/negative.js b/examples/negative.js index b4a36be..a149a89 100755 --- a/examples/negative.js +++ b/examples/negative.js @@ -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));