-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
documented run_system_cached issue#21617 #21707
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
base: main
Are you sure you want to change the base?
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
| /// Runs a cached system, registering it if necessary. | ||
| /// | ||
| /// # Type Inference Note | ||
| /// If the system returns `()`, you may need to explicitly constrain the output | ||
| /// type for error handling: | ||
| /// | ||
| /// ```rust | ||
| /// () = world.run_system_cached(my_system)?; | ||
| /// ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a duplicate header, and the type inference example should use the run_system_cached_with function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! Header removed and example updated. Thanks for the note.
Objective
World::run_system_cached(_with)needs type hints for error handling #21617 by adding documentation to both run_system_cached functionsSolution