Skip to content

Commit 05ac6db

Browse files
committed
Tweaks to Markup Reference
1 parent ed0f833 commit 05ac6db

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/rdoc/markup_reference.rb

+13-13
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@
463463
#
464464
# - Specifies that the defined object should not be documented.
465465
#
466-
# - For method definitions in C code, it must be placed before the
467-
# implementation:
466+
# - For a method definition in C code, it the directive must be in the comment line
467+
# immediately preceding the definition:
468468
#
469469
# /* :nodoc: */
470470
# static VALUE
@@ -473,8 +473,8 @@
473473
# return self;
474474
# }
475475
#
476-
# Note that this directive has <em>no effect at all</em> at method
477-
# definition places. E.g.,
476+
# Note that this directive has <em>no effect at all</em>
477+
# when placed at the method declaration:
478478
#
479479
# /* :nodoc: */
480480
# rb_define_method(cMyClass, "do_something", something_func, 0);
@@ -483,8 +483,8 @@
483483
# Therefore, +do_something+ method will be reported as "undocumented"
484484
# unless that method or function is documented elsewhere.
485485
#
486-
# - For constant definitions in C code, this directive <em>can not work</em>
487-
# because there is no "implementation" place for constants.
486+
# - For a constant definition in C code, this directive <em>can not work</em>
487+
# because there is no "implementation" place for a constant.
488488
#
489489
# - <tt># :nodoc: all</tt>:
490490
#
@@ -497,7 +497,7 @@
497497
#
498498
# - Appended to a line of code
499499
# that defines a class, module, method, alias, constant, or attribute.
500-
# - Specifies the defined object should be documented, even if otherwise
500+
# - Specifies the defined object should be documented, even if it otherwise
501501
# would not be documented.
502502
#
503503
# - <tt># :notnew:</tt> (aliased as <tt>:not_new:</tt> and <tt>:not-new:</tt>):
@@ -1209,26 +1209,26 @@
12091209
#
12101210
class RDoc::MarkupReference
12111211

1212-
# example class
1212+
# Example class.
12131213
class DummyClass; end
12141214

1215-
# example module
1215+
# Example module.
12161216
module DummyModule; end
12171217

1218-
# example singleton method
1218+
# Example singleton method.
12191219
def self.dummy_singleton_method(foo, bar); end
12201220

1221-
# example instance method
1221+
# Example instance method.
12221222
def dummy_instance_method(foo, bar); end;
12231223

12241224
alias dummy_instance_alias dummy_instance_method
12251225

1226-
# example attribute
1226+
# Example attribute.
12271227
attr_accessor :dummy_attribute
12281228

12291229
alias dummy_attribute_alias dummy_attribute
12301230

1231-
# example constant
1231+
# Example constant.
12321232
DUMMY_CONSTANT = ''
12331233

12341234
# :call-seq:

0 commit comments

Comments
 (0)