From 0c5de1ff813de9661d33cb9aefc4a9540b58b147 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Wed, 14 Jan 2015 09:42:57 -0800 Subject: [PATCH] doc: fix double smalloc example PR-URL: https://github.com/iojs/io.js/pull/413 Reviewed-By: Ben Noordhuis --- doc/api/smalloc.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/smalloc.markdown b/doc/api/smalloc.markdown index ff905714e5ed21..f72857ff870dc8 100644 --- a/doc/api/smalloc.markdown +++ b/doc/api/smalloc.markdown @@ -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 }