ext/khetai/khetai.c in khetai-0.2.1 vs ext/khetai/khetai.c in khetai-0.2.2
- old
+ new
@@ -38,11 +38,11 @@
for (unsigned int i = 0; i < array_size; i++)
{
VALUE element = rb_ary_entry(board_array, i);
if (!RB_TYPE_P(element, T_STRING) || RSTRING_LEN(element) != 2)
{
- rb_raise(rb_eArgError, "each element in the board_array must be 2 characters");
+ rb_raise(rb_eArgError, "each element in board_array must be 2 characters");
}
// check if element in board_array is a valid string
const char *element_str = RSTRING_PTR(element);
int is_valid = 0;
@@ -54,10 +54,10 @@
break;
}
}
if (!is_valid)
{
- rb_raise(rb_eArgError, "each element in the board_array must be a valid piece (example: 'p1') or empty ('--')");
+ rb_raise(rb_eArgError, "each element in board_array must be a valid piece (example: 'p1') or empty ('--')");
}
}
// khetai_lib assumes an extra level of padding around the board
char *init_board[120];