Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BurdetteLamar
Copy link
Member

No description provided.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Oct 29, 2024
Copy link
Member

@peterzhu2118 peterzhu2118 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having a hard time following this documentation because I don't understand what operands means.

@BurdetteLamar
Copy link
Member Author

I'm having a hard time following this documentation because I don't understand what operands means.

Discussion recast to omit "operand."

array.c Outdated
*
* Each nested array <tt>new_array[n]</tt> is of size <tt>other_arrays.size+1</tt>,
* and contains:
* Returns an array of size <tt>other_arrays.size + 1</tt>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is true? It returns an array of size self.size and each subarray is of size other_arrays.size + 1:

[1, 2].zip([3, 4], [5, 6], [7, 8]) # => [[1, 3, 5, 7], [2, 4, 6, 8]]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@peterzhu2118 peterzhu2118 merged commit 72550d2 into ruby:master Nov 8, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements to documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants