It accepts nil, String and Array of Strings as you can see in https://github.com/ruby/ruby/blob/trunk/error.c#L720 Maybe it would be better to change title of first example from "any array" to "array of strings", what do you think?