summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-02 12:06:06 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-02 12:23:49 +0900
commitb4ec22fe6c493a212c059cecab90de5b5f349102 (patch)
tree1e4e274cfd5e2bc079142462b48eba6f04380e24 /struct.c
parentd441d351073d6a6c49f7c12ea99e17480aa4ee5e (diff)
[DOC] Exclude 'Method' from RDoc's autolinking
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12496
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]
*