Project

General

Profile

Bug #6680

Unclear rdoc for Array and String slicing

Added by stomar (Marcus Stollsteimer) about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.3p243 (2012-06-28 revision 36244) [i686-linux]
Backport:
[ruby-core:46026]

Description

=begin
Slicing of arrays and strings specifying start/length or using a range is not documented well, and often leads to confusion, see for example

http://stackoverflow.com/questions/3568222/array-slicing-in-ruby-looking-for-explanation-for-illogical-behaviour-taken-fr

or

http://www.ruby-forum.com/topic/1393096#990065

The attached patch tries to clarify the documentation.
=end


Files

rdoc_for_array_and_string_slice.patch (2.83 KB) rdoc_for_array_and_string_slice.patch stomar (Marcus Stollsteimer), 07/01/2012 07:27 AM
rdoc_for_array_and_string_slice_2_v1.patch (2.02 KB) rdoc_for_array_and_string_slice_2_v1.patch stomar (Marcus Stollsteimer), 07/04/2012 09:38 PM
rdoc_for_array_and_string_slice_2_v2.patch (2.02 KB) rdoc_for_array_and_string_slice_2_v2.patch stomar (Marcus Stollsteimer), 07/04/2012 09:38 PM
typo_in_rdoc_for_array_and_string_slice.patch (435 Bytes) typo_in_rdoc_for_array_and_string_slice.patch stomar (Marcus Stollsteimer), 07/04/2012 11:51 PM

Also available in: Atom PDF