libstd: Change Path::new to Path::init.
This commit is contained in:
@@ -450,7 +450,7 @@ pub trait Reader {
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
/// let reader = File::open(&Path::new("foo.txt"))
|
||||
/// let reader = File::open(&Path::init("foo.txt"))
|
||||
/// while !reader.eof() {
|
||||
/// println(reader.read_line());
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user