Skip to content

Conversation

@straight-shoota
Copy link
Member

Slice is a natural presentation of values in a region of memory that a pointer points to.
So we should use that in example code when we want to show the contents of a pointer, using established value expression syntax.

Ref #16338 (comment)

@straight-shoota straight-shoota self-assigned this Nov 9, 2025
@straight-shoota straight-shoota changed the title Use to_slice presentation in Pointer doc examples Use to_slice for presentation in Pointer doc examples Nov 10, 2025
@straight-shoota straight-shoota added this to the 1.19.0 milestone Nov 10, 2025
@straight-shoota straight-shoota merged commit be2f1ca into crystal-lang:master Nov 12, 2025
40 checks passed
@straight-shoota straight-shoota deleted the docs/pointer-presentation branch November 12, 2025 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants