Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc examples errors #440

Closed
jordens opened this issue Jan 12, 2024 · 3 comments
Closed

doc examples errors #440

jordens opened this issue Jan 12, 2024 · 3 comments

Comments

@jordens
Copy link
Contributor

jordens commented Jan 12, 2024

e.g.

https://github.com/rust-embedded/heapless/blob/cbd406eab8eaba37206cd9f4924b1e4bdf314d5d/src/vec.rs#L19C1-L20C1

push() is fallible. The Result should be used, even if it is just .ok()ed.

@newAM
Copy link
Member

newAM commented Jan 14, 2024

Do you know of an automated way to check for this? I can fix that specific example, but there are probably more in the codebase.

@jordens
Copy link
Contributor Author

jordens commented Jan 15, 2024

Not aware of anything other than what you already found: #416 (comment)

@jordens
Copy link
Contributor Author

jordens commented Jan 17, 2024

#441

@jordens jordens closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants