about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-01-05 18:35:04 -0500
committerGitHub <noreply@github.com>2025-01-05 18:35:04 -0500
commitaf9293f507dec2eaac544a98175e00692b1c4770 (patch)
treec2f46acc12e029a21f6b72e81258a85555032e1b /compiler/rustc_codegen_gcc
parentb9f971a52cad750f5b2a554bf4b3f25bcf64cbdb (diff)
parent6243c0f818ee05b81a8e465bc3d44ae040ea14bd (diff)
downloadrust-af9293f507dec2eaac544a98175e00692b1c4770.tar.gz
rust-af9293f507dec2eaac544a98175e00692b1c4770.zip
Rollup merge of #135118 - ranger-ross:better-docs-on-iter-fns, r=jhpratt
Clarified the documentation on `core::iter::from_fn` and `core::iter::successors`

This PR clarifies the closure requirements for `core::iter::from_fn` and `core::iter::successors`.

`std::iter::successors` in particular is a bit difficult to understand if you are not already familiar with the signature of [`checked_mul`](https://docs.rs/num/latest/num/trait.CheckedMul.html) used in the example.

See https://github.com/rust-lang/rust/issues/135087
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions