ruby-changes:60122
From: Marcus <ko1@a...>
Date: Thu, 20 Feb 2020 05:03:40 +0900 (JST)
Subject: [ruby-changes:60122] eed7235e33 (master): hash.c: [DOC] fix typos
https://git.ruby-lang.org/ruby.git/commit/?id=eed7235e33 From eed7235e33ab55209c33bf255949be4f26b8c7e2 Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer <sto.mar@w...> Date: Wed, 19 Feb 2020 20:59:21 +0100 Subject: hash.c: [DOC] fix typos diff --git a/hash.c b/hash.c index 33bc754..8145dde 100644 --- a/hash.c +++ b/hash.c @@ -5542,7 +5542,7 @@ env_reject_bang(VALUE ehash) https://github.com/ruby/ruby/blob/trunk/hash.c#L5542 * * Yields each environment variable name and its value as a 2-element Array, * deleting each environment variable for which the block returns a truthy value, - * and returning ENV (regardless or whether any deletions): + * and returning ENV (regardless of whether any deletions): * ENV.replace('foo' => '0', 'bar' => '1', 'baz' => '2') * ENV.delete_if { |name, value| name.start_with?('b') } # => ENV * ENV # => {"foo"=>"0"} @@ -6003,7 +6003,7 @@ env_assoc(VALUE env, VALUE key) https://github.com/ruby/ruby/blob/trunk/hash.c#L6003 * ENV.value?(value) -> true or false * ENV.has_value?(value) -> true or false * - * Returns +true+ if +value+ is the value for some environment variable name, +false+ otherwise.: + * Returns +true+ if +value+ is the value for some environment variable name, +false+ otherwise: * ENV.replace('foo' => '0', 'bar' => '1') * ENV.value?('0') # => true * ENV.has_value?('0') # => true @@ -6090,7 +6090,7 @@ env_rassoc(VALUE dmy, VALUE obj) https://github.com/ruby/ruby/blob/trunk/hash.c#L6090 * ENV.key('2') # => nil * Raises an exception if +value+ is invalid: * ENV.key(Object.new) # raises TypeError (no implicit conversion of Object into String) - * See {Invalid Names and Values}[#class-ENV-label-Invalid-Names+and+Values] + * See {Invalid Names and Values}[#class-ENV-label-Invalid-Names+and+Values]. */ static VALUE env_key(VALUE dmy, VALUE value) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/