Skip to content

Commit

Permalink
add output to negative example
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 10, 2010
1 parent 519fd1f commit 590045e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/negative.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ var fixed = Traverse([
if (x < 0) this.update(x + 128);
}).get()
sys.puts(sys.inspect(fixed));

/* Output:
[ 5, 6, 125, [ 7, 8, 126, 1 ], { f: 10, g: 115 } ]
*/

0 comments on commit 590045e

Please sign in to comment.