Path/PathBuf have better names, but the distinction still isn't immediately obvious.
String/str is the cause of so much confusion.
This confusion is why we reorganized the book to talk about String and &str very early on, and use them to teach ownership and borrowing.
This confusion is why we reorganized the book to talk about String and &str very early on, and use them to teach ownership and borrowing.