Skip to content

Conversation

@ntc2
Copy link
Contributor

@ntc2 ntc2 commented Aug 12, 2025

Call out early that the results returned can differ across calls / aren't deterministic. This was already mentioned at the bottom of examples, but I think it's worth calling out early, since this caused at least one person (me!) great confusion.

@rustbot
Copy link
Collaborator

rustbot commented Aug 12, 2025

r? @tgross35

rustbot has assigned @tgross35.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Aug 12, 2025
@joshtriplett
Copy link
Member

r=me when CI passes.

@samueltardieu
Copy link
Member

@ntc2 Did you notice @tgross35's comment about the missing comma?

@ntc2
Copy link
Contributor Author

ntc2 commented Aug 26, 2025

@ntc2 Did you notice @tgross35's comment about the missing comma?

Just marked resolved, did not change.

Call out early that the results returned can differ across calls /
aren't deterministic. This was already mentioned at the bottom of
examples, but I think it's worth calling out early, since this caused at
least one person (me!) great confusion.

[ Added a comma to the docs, reflowed commit message - Trevor ]
@tgross35
Copy link
Contributor

tgross35 commented Aug 27, 2025

It's nice to keep good grammar in user-facing docs, but this isn't worth the back-and-forth so I just added the comma and pushed the branch.

Thanks for the improvement!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 27, 2025

📌 Commit 0b4f978 has been approved by tgross35

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 27, 2025
@tgross35
Copy link
Contributor

Forgot Josh's r=me above

@bors r=joshtriplett,tgross35

@bors

This comment was marked as off-topic.

@bors
Copy link
Collaborator

bors commented Aug 27, 2025

📌 Commit 0b4f978 has been approved by joshtriplett,tgross35

It is now in the queue for this repository.

bors added a commit that referenced this pull request Aug 27, 2025
Rollup of 6 pull requests

Successful merges:

 - #142215 (Use -Zmir-opt-level=0 in tests for MIR building)
 - #143341 (Mention that casting to *const () is a way to roundtrip with from_raw_parts)
 - #145078 (Fix wrong cache line size of riscv64)
 - #145290 (Improve std::fs::read_dir docs)
 - #145335 (Move WTF-8 code from std into core and alloc)
 - #145904 (Move `riscv64-gc-unknown-linux-musl` from Tier 2 with Host tools to Tier 2)

r? `@ghost`
`@rustbot` modify labels: rollup
@ntc2
Copy link
Contributor Author

ntc2 commented Aug 27, 2025

It's nice to keep good grammar in user-facing docs, but this isn't worth the back-and-forth so I just added the comma and pushed the branch.

Thanks for the improvement!

@bors r+ rollup

Thanks!

@bors bors merged commit bc9655a into rust-lang:master Aug 27, 2025
10 checks passed
@rustbot rustbot added this to the 1.91.0 milestone Aug 27, 2025
rust-timer added a commit that referenced this pull request Aug 27, 2025
Rollup merge of #145290 - ntc2:patch-1, r=joshtriplett,tgross35

Improve std::fs::read_dir docs

Call out early that the results returned can differ across calls / aren't deterministic. This was already mentioned at the bottom of examples, but I think it's worth calling out early, since this caused at least one person (me!) great confusion.
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Sep 9, 2025
Improve std::fs::read_dir docs

Call out early that the results returned can differ across calls / aren't deterministic. This was already mentioned at the bottom of examples, but I think it's worth calling out early, since this caused at least one person (me!) great confusion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants