-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[stdlib] [NFC] Rename List.bytecount()
to byte_length()
#3897
Conversation
Signed-off-by: martinvuyk <[email protected]>
I think we might want to make the docstring a bit more elaborate to clarify, for example, that it is not the number of bytes allocated. |
Signed-off-by: martinvuyk <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before I sync this, do you mind adding a small changelog entry please since this is a public API? Thanks!
!sync |
Signed-off-by: martinvuyk <[email protected]>
✅🟣 This contribution has been merged 🟣✅ Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the main branch during the next Mojo nightly release, typically within the next 24-48 hours. We use Copybara to merge external contributions, click here to learn more. |
Landed in 871045c! Thank you for your contribution 🎉 |
…` (#54664) [External] [stdlib] [NFC] Rename `List.bytecount()` to `byte_length()` Rename `List.bytecount()` to `byte_length()` to keep consistency with all Stringlike types. Co-authored-by: martinvuyk <[email protected]> Co-authored-by: Joe Loser <[email protected]> Closes #3897 MODULAR_ORIG_COMMIT_REV_ID: bcb5da166f0490eaea10f88a45cf9023e8bb8f63
Rename
List.bytecount()
tobyte_length()
to keep consistency with all Stringlike types