Skip to content

Commit

Permalink
doc: fix double smalloc example
Browse files Browse the repository at this point in the history
PR-URL: #413
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
mafintosh authored and bnoordhuis committed Jan 14, 2015
1 parent 0926cb9 commit 0c5de1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/smalloc.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ possible options are listed in `smalloc.Types`. Example usage:
var doubleArr = smalloc.alloc(3, smalloc.Types.Double);

for (var i = 0; i < 3; i++)
doubleArr = i / 10;
doubleArr[i] = i / 10;

// { '0': 0, '1': 0.1, '2': 0.2 }

Expand Down

0 comments on commit 0c5de1f

Please sign in to comment.