diff --git a/src/com/annimon/ownlang/lib/modules/functions/functional_filter.java b/src/com/annimon/ownlang/lib/modules/functions/functional_filter.java index 86ff481..ecefe41 100644 --- a/src/com/annimon/ownlang/lib/modules/functions/functional_filter.java +++ b/src/com/annimon/ownlang/lib/modules/functions/functional_filter.java @@ -27,7 +27,7 @@ public final class functional_filter implements Function { return filterMap((MapValue) container, consumer); } - throw new TypeException("Invalid first argument. Array or map exprected"); + throw new TypeException("Invalid first argument. Array or map expected"); } private Value filterArray(ArrayValue array, Function predicate) { diff --git a/src/com/annimon/ownlang/lib/modules/functions/functional_foreach.java b/src/com/annimon/ownlang/lib/modules/functions/functional_foreach.java index 8bc26a0..37ce3ee 100644 --- a/src/com/annimon/ownlang/lib/modules/functions/functional_foreach.java +++ b/src/com/annimon/ownlang/lib/modules/functions/functional_foreach.java @@ -31,6 +31,6 @@ public final class functional_foreach implements Function { } return NumberValue.ZERO; } - throw new TypeException("Invalid first argument. Array or map exprected"); + throw new TypeException("Invalid first argument. Array or map expected"); } } \ No newline at end of file diff --git a/src/com/annimon/ownlang/lib/modules/functions/functional_map.java b/src/com/annimon/ownlang/lib/modules/functions/functional_map.java index 2c883ac..63497fa 100644 --- a/src/com/annimon/ownlang/lib/modules/functions/functional_map.java +++ b/src/com/annimon/ownlang/lib/modules/functions/functional_map.java @@ -33,7 +33,7 @@ public final class functional_map implements Function { return mapMap((MapValue) container, keyMapper, valueMapper); } - throw new TypeException("Invalid first argument. Array or map exprected"); + throw new TypeException("Invalid first argument. Array or map expected"); } private Value mapArray(ArrayValue array, Function mapper) { diff --git a/src/com/annimon/ownlang/lib/modules/functions/functional_reduce.java b/src/com/annimon/ownlang/lib/modules/functions/functional_reduce.java index 781b3bd..2277686 100644 --- a/src/com/annimon/ownlang/lib/modules/functions/functional_reduce.java +++ b/src/com/annimon/ownlang/lib/modules/functions/functional_reduce.java @@ -34,6 +34,6 @@ public final class functional_reduce implements Function { } return result; } - throw new TypeException("Invalid first argument. Array or map exprected"); + throw new TypeException("Invalid first argument. Array or map expected"); } } \ No newline at end of file