Skip to content

Fix incorrect example output in Array#fetch_values#3017

Open
djkazunoko wants to merge 1 commit intorurema:masterfrom
djkazunoko:fix-array-fetch_values-example
Open

Fix incorrect example output in Array#fetch_values#3017
djkazunoko wants to merge 1 commit intorurema:masterfrom
djkazunoko:fix-array-fetch_values-example

Conversation

@djkazunoko
Copy link

@djkazunoko djkazunoko commented Mar 12, 2026

https://docs.ruby-lang.org/ja/latest/method/Array/i/fetch_values.html のサンプルコードの出力結果が誤っていたため修正しました。

ary.fetch_values(-1, 1) の結果は ["d", "b"] ではなく ["c", "b"] になります。

@djkazunoko djkazunoko marked this pull request as ready for review March 12, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant