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

Add documentation comments to bevy_winit #8115

Merged
merged 8 commits into from Mar 21, 2023
Merged

Conversation

beeryt
Copy link
Contributor

@beeryt beeryt commented Mar 17, 2023

Objective

  • Add documentation comments to bevy_winit
  • Add #![warn(missing_docs)] to bevy_winit.

Relates to #3492

@beeryt beeryt changed the title Add documentation comments to bevy_window Add documentation comments to bevy_winit Mar 17, 2023
@mockersf
Copy link
Member

it seems you missed adding #![warn(missing_docs)]?

@mockersf mockersf added C-Docs An addition or correction to our documentation A-Windowing Platform-agnostic interface layer to run your app in labels Mar 17, 2023
beeryt and others added 2 commits March 17, 2023 09:05
Co-authored-by: François <mockersf@gmail.com>
@beeryt
Copy link
Contributor Author

beeryt commented Mar 17, 2023

it seems you missed adding #![warn(missing_docs)]?

It appears that I did... and I'm also missing comments for the crate and accessibility module. Not sure at the moment what these should be.

@cart cart added this pull request to the merge queue Mar 21, 2023
@cart cart merged commit 353f2e0 into bevyengine:main Mar 21, 2023
20 checks passed
@beeryt beeryt deleted the docs/bevy_winit branch March 23, 2023 03:06
Comment on lines +24 to 26
/// A resource which maps window entities to [`winit`] library windows.
#[derive(Debug, Default)]
pub struct WinitWindows {
Copy link
Member

@Vrixyz Vrixyz May 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to come back after this PR is merged; but is this documentation accurate ? as the struct doesn't derive Resource, it's not a resource 🤔 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh it's a NonSendMut 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Windowing Platform-agnostic interface layer to run your app in C-Docs An addition or correction to our documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants