Remove unnecessary links in env.rs

This commit is contained in:
Ellen 2020-08-17 15:16:00 +01:00
parent a2dfc3ec78
commit e7a7279750

View File

@ -28,8 +28,6 @@ use crate::sys::os as os_imp;
/// * Current directory does not exist.
/// * There are insufficient permissions to access the current directory.
///
/// [`Err`]: Result::Err
///
/// # Examples
///
/// ```
@ -50,8 +48,6 @@ pub fn current_dir() -> io::Result<PathBuf> {
///
/// Returns an [`Err`] if the operation fails.
///
/// [`Err`]: Result::Err
///
/// # Examples
///
/// ```
@ -218,8 +214,6 @@ fn _var(key: &OsStr) -> Result<String, VarError> {
/// Fetches the environment variable `key` from the current process, returning
/// [`None`] if the variable isn't set.
///
/// [`None`]: Option::None
///
/// # Panics
///
/// This function may panic if `key` is empty, contains an ASCII equals sign
@ -447,8 +441,6 @@ pub struct JoinPathsError {
/// [`Path`]s contains an invalid character for constructing the `PATH`
/// variable (a double quote on Windows or a colon on Unix).
///
/// [Err]: Result::Err
///
/// # Examples
///
/// Joining paths on a Unix-like platform: