8000 [DOC] Tweaks for String#bytes by BurdetteLamar · Pull Request #13486 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

[DOC] Tweaks for String#bytes #13486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jump to bottom
Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BurdetteLamar
Copy link
Member

No description provided.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label May 31, 2025
@@ -1,6 +1,8 @@
Returns an array of the bytes in +self+:
Returns an array of the 8-bit bytes in +self+:
Copy link
Member

Choose a reason for hiding this comment

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

Or "octets"?

@@ -1,6 +1,8 @@
Returns an array of the bytes in +self+:
Returns an array of the 8-bit bytes in +self+:
Copy link
Member

Choose a reason for hiding this comment

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

AFAIK all the platforms that Ruby runs on uses 8-bit bytes. In the case that a system somehow uses non 8-bit bytes, I think Ruby will also use the native byte size. So I think it's a bit redundant.

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.

3 participants
0