This commit is contained in:
Ian Manske 2024-06-20 22:26:21 -07:00
parent 418a737ad3
commit f2f017dd39

View File

@ -1270,7 +1270,7 @@ impl<Form: PathForm> PathBuf<Form> {
///
/// let p = RelativePathBuf::try_from("test.txt").unwrap();
/// let p: PathBuf = p.cast_into();
/// assert_eq!(PathBuf::from("/test"), p);
/// assert_eq!(PathBuf::from("test.txt"), p);
/// ```
#[inline]
pub fn cast_into<To>(self) -> PathBuf<To>