From 5fcb3f5256207e392e9500db720aa2aeb3f85304 Mon Sep 17 00:00:00 2001 From: James Halliday Date: Thu, 8 Jul 2010 23:06:54 -0800 Subject: [PATCH] s/127/128/ --- README.markdown | 2 +- examples/negative.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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));