on master help sign in
Fix get function names
commit66bd1a4790871f47ccdcdf3bbc3084b2cde307bf authorChristian Widera <xash@posteo.de> dateTue 1 Apr 2014, 00:08 (13 years ago) parent150e8d6
2 files changed+2−2
libraries/Array.elm+1−1 libraries/Native/Array.js+1−1
libraries/Array.elm+1−1
@@ -8,7 +8,7 @@ If you use more then one map or zip function on an array, consider turning it
88into a list before operating on it, and then turning it back into an array.
99
1010# Basics
11−@docs empty, length, get, safeGet, getWithDefault
11+@docs empty, length, get, getMaybe, getSafe
1212
1313# Putting Arrays Together
1414@docs fill, fromList, concat, set, updates, push
libraries/Native/Array.js+1−1
@@ -30,7 +30,7 @@ Elm.Native.Array.make = function(elm) {
3030 if (i < a.table.length) {
3131 return a.table[i];
3232 } else {
33− throw new Error("Index "+ i +" on the array is out of range. Check the length first or you safeGet.");
33+ throw new Error("Index "+ i +" is out of range. Check the length of your array first or use getSafe or getMaybe.");
3434 }
3535 }
3636