offset_of docs examples use assert! instead of assert_eq! #122716
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-help-wanted
Call for participation: Help is requested to fix this issue.
Location
In the code block right before the Examples header
https://doc.rust-lang.org/stable/std/mem/macro.offset_of.html
Summary
I believe where it uses
assert!
theassert_eq!
macro was meant.The text was updated successfully, but these errors were encountered: