Skip to content

Add an example of accessing Union elements (unsafe)#2027

Open
nleonh wants to merge 1 commit into
rust-lang:masterfrom
nleonh:master
Open

Add an example of accessing Union elements (unsafe)#2027
nleonh wants to merge 1 commit into
rust-lang:masterfrom
nleonh:master

Conversation

@nleonh

@nleonh nleonh commented Jul 23, 2026

Copy link
Copy Markdown

Hello,
this is my first contribution to Rust.
I really like the Rust by Example book and want to help improving it.

I added an example of using Unions to the Unsafe Rust chapter.

@rustbot

rustbot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project is excited to review your changes, and you should hear from @marioidival (or someone else) some time within the next two weeks.

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @marioidival

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.

3 participants