Skip to content

offset_of docs examples use assert! instead of assert_eq! #122716

Closed
@esoterra

Description

@esoterra

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! the assert_eq! macro was meant.

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-help-wantedCall for participation: Help is requested to fix this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions