doc: fill out fs and remove html links (#2015)

also add an async version of `fs::canonicalize`
This commit is contained in:
Carl Lerche
2019-12-22 12:55:09 -08:00
committed by GitHub
parent 99fa93bf0e
commit 7b53b7b659
26 changed files with 605 additions and 153 deletions
+2 -2
View File
@@ -348,6 +348,8 @@ impl Command {
/// platform specific and unstable, and it's recommended to use
/// [`canonicalize`] to get an absolute program path instead.
///
/// [`canonicalize`]: crate::fs::canonicalize()
///
/// # Examples
///
/// Basic usage:
@@ -358,8 +360,6 @@ impl Command {
/// let command = Command::new("ls")
/// .current_dir("/bin");
/// ```
///
/// [`canonicalize`]: ../fs/fn.canonicalize.html
pub fn current_dir<P: AsRef<Path>>(&mut self, dir: P) -> &mut Command {
self.std.current_dir(dir);
self