rust-lang / nomicon

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

Typo here in exotic-sizes.html #222

Closed Teln0 closed 4 years ago

Teln0 commented 4 years ago

In this paragraph : A trait object represents some type that implements the traits it specifies. The exact original type is erased in favor of runtime reflection with a vtable containing all the information necessary to use the type. The information that completes a trait object pointer is the vtable pointer. The runtime size of the pointee can be dynamically requested from the vtable.

The word "pointee" should be "pointer"

ehuss commented 4 years ago

The original looks correct to me. I read it as "The runtime size of the thing the trait object pointer is pointing to can be dynamically requested from the vtable". Changing it to "pointer" would mean the size of a pointer, which is always target_pointer_width, and wouldn't really make sense in this context.

Teln0 commented 4 years ago

Oh ok I read it wrong I think, sorry