From 1a65cef0f03fc9250cd5f2de3ce1ac4f79cfdb7a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 23 Sep 2014 00:13:32 +0000 Subject: doc: remove trailing spaces git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/syntax/methods.rdoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/syntax') diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc index 58179549f3..2c01810b4c 100644 --- a/doc/syntax/methods.rdoc +++ b/doc/syntax/methods.rdoc @@ -109,22 +109,22 @@ operator with an @ as in +@ or !@: Unary methods accept zero arguments. -Additionally, methods for element reference and assignment may be defined: -[] and []= respectively. Both can take one or more +Additionally, methods for element reference and assignment may be defined: +[] and []= respectively. Both can take one or more arguments, and element reference can take none. class C def [](a, b) puts a + b end - + def []=(a, b, c) puts a * b + c end end - + obj = C.new - + obj[2, 3] # prints "5" obj[2, 3] = 4 # prints "10" -- cgit v1.2.3