aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 6c68240f0e..ca939bef61 100644
--- a/enum.c
+++ b/enum.c
@@ -3234,7 +3234,7 @@ enum_slice_after(int argc, VALUE *argv, VALUE enumerable)
if (rb_block_given_p()) {
if (0 < argc)
- rb_raise(rb_eArgError, "both pattan and block are given");
+ rb_raise(rb_eArgError, "both pattern and block are given");
pred = rb_block_proc();
}
else {