path: root/doc/syntax
diff options
Diffstat (limited to 'doc/syntax')
2 files changed, 6 insertions, 5 deletions
diff --git a/doc/syntax/assignment.rdoc b/doc/syntax/assignment.rdoc
index 8c7fa3a..830ba39 100644
--- a/doc/syntax/assignment.rdoc
+++ b/doc/syntax/assignment.rdoc
@@ -57,7 +57,8 @@ This prints:
You may isolate variables in a block from the outer scope by listing them
following a <code>;</code> in the block's arguments. See the documentation
-for {calling methods}[rdoc-ref:syntax/calling_methods.rdoc] for an example.
+for block local variables in the {calling
+methods}[rdoc-ref:syntax/calling_methods.rdoc] documentation for an example.
See also Kernel#local_variables, but note that a +for+ loop does not create a
new scope like a block does.
@@ -416,8 +417,8 @@ But you may only use one <code>*</code> in an assignment.
== Array Decomposition
-As with {method arguments}[rdoc-ref:syntax/methods.rdoc] you can decompose an
-Array using parenthesis:
+Like Array decomposition in {method arguments}[rdoc-ref:syntax/methods.rdoc]
+you can decompose an Array during assignment using parenthesis:
(a, b) = [1, 2]
diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc
index 5499632..7fd6998 100644
--- a/doc/syntax/methods.rdoc
+++ b/doc/syntax/methods.rdoc
@@ -409,6 +409,6 @@ May be written as:
If you wish to rescue an exception for only part of your method use +begin+ and
-+end+. For more details see the page on {Exception
++end+. For more details see the page on {exception