about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-13 16:42:05 +0200
committerGitHub <noreply@github.com>2024-04-13 16:42:05 +0200
commitc5bf34a3bff16d62cd4b9fa8f6ca3bd88d91721f (patch)
tree8a8ddd5b913771c137275523c3913f7c0a34f04c /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent873de7e106dd24de375bd315c9417340ba01d32c (diff)
parent6b0d3663c1be68a0f5a619c00e946b0754d7c3a8 (diff)
downloadrust-c5bf34a3bff16d62cd4b9fa8f6ca3bd88d91721f.tar.gz
rust-c5bf34a3bff16d62cd4b9fa8f6ca3bd88d91721f.zip
Rollup merge of #123716 - Kriskras99:patch-2, r=Mark-Simulacrum
Update documentation of Path::to_path_buf and Path::ancestors

`Path::to_path_buf`
> Changes the example from using the qualified path of PathBuf with an import. This is what's done in all other Path/PathBuf examples and makes the code look a bit cleaner.

`Path::ancestors`
> If you take a quick glance at the documentation for Path::ancestors, the unwraps take the natural focus. Potentially indicating that ancestors might panic.
In the reworked version I've also moved the link with parent returning None and that the iterator will always yield &self to before the yield examples.

Feel free to cherry-pick the changes you like.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions