diff options
-rw-r--r-- | hash.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -2480,14 +2480,16 @@ shift_i_safe(VALUE key, VALUE value, VALUE arg) * call-seq: * shift -> [key, value] or nil * - * Removes the first hash entry - * (see {Entry Order}[rdoc-ref:Hash@Entry+Order]); - * returns a 2-element Array containing the removed key and value: * h = {foo: 0, bar: 1, baz: 2} * h.shift # => [:foo, 0] - * h # => {bar: 1, baz: 2} * - * Returns nil if the hash is empty. */ static VALUE |