diff options
author | Peter Zhu <[email protected]> | 2022-04-13 10:42:46 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-04-13 10:43:23 -0400 |
commit | 54b53e2c8fc06e708232e399e3970fd0ecc5c4a5 (patch) | |
tree | 52b024d12a46cf401657b54ec7d96742e8991345 /struct.c | |
parent | df1594e4b5100cef0ec0b5cf6a065f11634b26b2 (diff) |
[ci skip] Fix docs
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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#==. */ |