[Merged by Bors] - Fixed docs for derive(WorldQuery).#5283
[Merged by Bors] - Fixed docs for derive(WorldQuery).#5283CGMossa wants to merge 8 commits intobevyengine:mainfrom
derive(WorldQuery).#5283Conversation
alice-i-cecile
left a comment
There was a problem hiding this comment.
Feedback:
- You probably want to add ` inside the brackets to make sure the link formats correctly.
- Could definitely use some better base docs; I'll leave some basic explanations.
- I'd leave doc(hidden) on there.
|
I thought that |
|
Yeah, I'm surprised to hear that this is still causing you problems. I think these are worth adding regardless however. |
|
@CGMossa this needs to be formatted before it can be merged :) |
|
Done. Sorry :( I cannot believe I didn't notice. |
|
@BoxyUwU @james7132 are my docs for the generated structs basically fine? |
|
havign docs on a doc(hidden) thing seems weird to me. the docs on the item type I think would be wrong for the |
|
I added a suggestion; I don't know if it improves things or not :( |
|
@BoxyUwU have you seen what I've suggested we change it to? |
|
I'm not sure what you mean by "suggested"- anyway the docs look fine to me but it seems like no commits were added? Whoops I must have misread the docs last time sorry |
|
Nope; you need to finish your review. That's what "pending" means. |
|
I've messed this up. I was waiting for Boxy, but it turns out that I was the one creating confusion. Here's what I suggested. The thing is that the link to |
|
@CGMossa I think Alice is fine with it as is. Could you resolve conflicts? |
|
Ah.. I have to rebase.. I'll see if I get to it tomorrow. |
derive structures generated.. through `derive(WorldQuery)`.
derive structures generated.. through `derive(WorldQuery)`. Added suggestions by @alice-i-cecile. Hiding doc for state types. `cargo fmt`.
82bc53d to
be4e9bc
Compare
|
Please @bzm3r to look at the changes once more, and see if something was lost the messy rebase I did on this. |
|
Don't merge this please; Testing if it serves it purpose shows that something is missing: |
struct created that needs documentation.
|
This is now fixed. |
|
bors r+ |
For `derive(WorldQuery)`, there are three structs generated, `Item`, `Fetch` and `State`. These inherit the visibility of the derived structure, thus `#![warn(missing_docs)]` would warn about missing documentation for these structures. - [ ] I'd like some advice on what to write here, as I personally don't really understand `Fetch` nor `State`.
derive(WorldQuery).derive(WorldQuery).
For `derive(WorldQuery)`, there are three structs generated, `Item`, `Fetch` and `State`. These inherit the visibility of the derived structure, thus `#![warn(missing_docs)]` would warn about missing documentation for these structures. - [ ] I'd like some advice on what to write here, as I personally don't really understand `Fetch` nor `State`.

For
derive(WorldQuery), there are three structs generated,Item,FetchandState.These inherit the visibility of the derived structure, thus
#![warn(missing_docs)]wouldwarn about missing documentation for these structures.
FetchnorState.