mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[ci skip] Fix docs
This commit is contained in:
parent
df1594e4b5
commit
54b53e2c8f
3 changed files with 8 additions and 8 deletions
12
struct.c
12
struct.c
|
@ -1433,12 +1433,12 @@ recursive_eql(VALUE s, VALUE s2, int recur)
|
|||
* - <tt>other.class == self.class</tt>.
|
||||
* - For each member name +name+, <tt>other.name.eql?(self.name)</tt>.
|
||||
*
|
||||
* Customer = Struct.new(:name, :address, :zip)
|
||||
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
|
||||
* joe_jr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
|
||||
* joe_jr.eql?(joe) # => true
|
||||
* joe_jr[:name] = 'Joe Smith, Jr.'
|
||||
* joe_jr.eql?(joe) # => false
|
||||
* Customer = Struct.new(:name, :address, :zip)
|
||||
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
|
||||
* joe_jr = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
|
||||
* joe_jr.eql?(joe) # => true
|
||||
* joe_jr[:name] = 'Joe Smith, Jr.'
|
||||
* joe_jr.eql?(joe) # => false
|
||||
*
|
||||
* Related: Object#==.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue