Project

General

Profile

Actions

Misc #14622

closed

Improve documentation for 'string '.split to also mention trailing spaces being ignored

Added by rosenfeld (Rodrigo Rosenfeld Rosas) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
-
[ruby-core:86240]

Description

The current documentation only talks about leading spaces being ignored when a single space is used as an argument. I've suggested a few changes to the documentation and example to make it clearer that trailing spaces are also ignored in that case:

https://github.com/ruby/ruby/pull/1845

Actions #1

Updated by nobu (Nobuyoshi Nakada) about 6 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0