summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/struct.c b/struct.c
index 1509a23051..b2fe346f76 100644
--- a/struct.c
+++ b/struct.c
@@ -587,7 +587,7 @@ rb_struct_define_under(VALUE outer, const char *name, ...)
*
* A subclass returned by Struct.new has these singleton methods:
*
- * - \Method <tt>::new </tt> creates an instance of the subclass:
+ * - Method <tt>::new </tt> creates an instance of the subclass:
*
* Foo.new # => #<struct Struct::Foo foo=nil, bar=nil>
* Foo.new(0) # => #<struct Struct::Foo foo=0, bar=nil>
@@ -600,12 +600,12 @@ rb_struct_define_under(VALUE outer, const char *name, ...)
* Foo.new(foo: 0, bar: 1, baz: 2)
* # Raises ArgumentError: unknown keywords: baz
*
- * - \Method <tt>:inspect</tt> returns a string representation of the subclass:
+ * - Method <tt>:inspect</tt> returns a string representation of the subclass:
*
* Foo.inspect
* # => "Struct::Foo"
*
- * - \Method <tt>::members</tt> returns an array of the member names:
+ * - Method <tt>::members</tt> returns an array of the member names:
*
* Foo.members # => [:foo, :bar]
*