Skip to content

docs(builtin): expand documentation for UInt64 byte-order conversions - #4181

Merged
bobzhang merged 1 commit into
moonbitlang:mainfrom
0717lee:docs/builtin-uint64-byte-order
Sep 1, 2026
Merged

bobzhang merged 1 commit into
moonbitlang:mainfrom
0717lee:docs/builtin-uint64-byte-order

Conversation

@0717lee

@0717lee 0717lee commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Continues #623. This third batch expands the one-line docs of UInt64::to_be_bytes and UInt64::to_le_bytes into full doc blocks, following the style of #4165 and #4166:

  • Description of the byte ordering
  • Parameters section
  • Returns section describing the layout of the resulting Bytes
  • Executable mbt check examples using 0x4142_4344_4546_4748UL (ASCII A..H), asserting b"ABCDEFGH" (big-endian) and b"HGFEDCBA" (little-endian)

Docs-only change; no behavioral impact.

Add full doc blocks with parameter descriptions and executable
examples to `UInt64::to_be_bytes` and `UInt64::to_le_bytes`.

Continues moonbitlang#623.
@bobzhang
bobzhang force-pushed the docs/builtin-uint64-byte-order branch from 08066b8 to 7a0787a Compare September 1, 2026 01:49
@bobzhang
bobzhang merged commit fe89eaa into moonbitlang:main Sep 1, 2026
16 checks passed
@0717lee
0717lee deleted the docs/builtin-uint64-byte-order branch September 18, 2026 12:11
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.

2 participants