summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-04-13 10:42:46 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-04-13 10:43:23 -0400
commit54b53e2c8fc06e708232e399e3970fd0ecc5c4a5 (patch)
tree52b024d12a46cf401657b54ec7d96742e8991345 /struct.c
parentdf1594e4b5100cef0ec0b5cf6a065f11634b26b2 (diff)
[ci skip] Fix docs
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/struct.c b/struct.c
index 6d9a929321..44ca389f04 100644
--- a/struct.c
+++ b/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#==.
*/