From 4f94cb43fcf7035e7ee1db0ba6750d3249567085 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 18 Dec 2015 03:39:49 +0000 Subject: * doc/syntax/*.rdoc: separated modifier at sentence. [ci skip][fix GH-1121] Patch by @clandry94 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/syntax/modules_and_classes.rdoc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc/syntax/modules_and_classes.rdoc') diff --git a/doc/syntax/modules_and_classes.rdoc b/doc/syntax/modules_and_classes.rdoc index a82a6f27ed..dd70d4ac21 100644 --- a/doc/syntax/modules_and_classes.rdoc +++ b/doc/syntax/modules_and_classes.rdoc @@ -94,7 +94,7 @@ nesting: end However, if you use :: to define A::B without -nesting it inside +A+ a NameError exception will be raised because the nesting +nesting it inside +A+, a NameError exception will be raised because the nesting does not include +A+: module A @@ -129,7 +129,7 @@ method on a module is often called a "class method" instead of a "module method". See also Module#module_function which can convert an instance method into a class method.) -When a class method references a constant it uses the same rules as referencing +When a class method references a constant, it uses the same rules as referencing it outside the method as the scope is the same. Instance methods defined in a module are only callable when included. These @@ -342,4 +342,3 @@ is equivalent to this code block: end Both objects will have a +my_method+ that returns +2+. - -- cgit v1.2.3