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 }