diff options
| author | Aaron Turon <aturon@mozilla.com> | 2015-01-29 14:03:36 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2015-02-03 14:34:42 -0800 |
| commit | 3e39f0bc0e96f76610104918edaa5912f4f352df (patch) | |
| tree | 19f32ce01fd97eb21b2e272a260f32a0dba6d499 /src/libstd/env.rs | |
| parent | 3b2ed14906fd9f9daa27cc7d1dad263d2f5ff450 (diff) | |
| download | rust-3e39f0bc0e96f76610104918edaa5912f4f352df.tar.gz rust-3e39f0bc0e96f76610104918edaa5912f4f352df.zip | |
Rename std::path to std::old_path
As part of [RFC 474](https://github.com/rust-lang/rfcs/pull/474), this commit renames `std::path` to `std::old_path`, leaving the existing path API in place to ease migration to the new one. Updating should be as simple as adjusting imports, and the prelude still maps to the old path APIs for now. [breaking-change]
Diffstat (limited to 'src/libstd/env.rs')
| -rw-r--r-- | src/libstd/env.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs index 5070f8c547a..559a68542ef 100644 --- a/src/libstd/env.rs +++ b/src/libstd/env.rs @@ -57,7 +57,7 @@ pub fn current_dir() -> IoResult<Path> { /// /// ```rust /// use std::env; -/// use std::path::Path; +/// use std::old_path::Path; /// /// let root = Path::new("/"); /// assert!(env::set_current_dir(&root).is_ok()); |
