rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.75k stars 258 forks source link

Update intro.md #347

Closed clearydude closed 2 years ago

clearydude commented 2 years ago

Very dumb PR/fix but type punning -> pinning . Nothing funny about types!

Gankra commented 2 years ago

No punning is the right thing. It's "saying some piece of memory has two different types because you know the layouts overlap in interesting ways". Exactly what transmute and friends do.

I don't think the nomicon even talks about Pin?

Gankra commented 2 years ago

(thanks for the PR tho, appreciate typo fixes in general!)

clearydude commented 2 years ago

Whoops TIL!