rust/library/std
Matthias Krüger c5bf34a3bf
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.
2024-04-13 16:42:05 +02:00
..
benches also test parts of std 2024-04-07 10:05:57 +02:00
src Rollup merge of #123716 - Kriskras99:patch-2, r=Mark-Simulacrum 2024-04-13 16:42:05 +02:00
tests also test parts of std 2024-04-07 10:05:57 +02:00
build.rs Support for visionOS 2024-03-18 20:45:45 -07:00
Cargo.toml add platform-specific function to get the error number for HermitOS 2024-02-28 23:01:56 +01:00