tor-config: CfgPath: Fix two typos "expaneded"

This commit is contained in:
Ian Jackson 2022-10-11 11:22:49 +01:00
parent 19d33d207d
commit d6b85b27c4
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ use tor_error::{ErrorKind, HasKind};
/// hood. (Some of those overrides are based on environment variables.)
/// For more information, see that crate's documentation.
///
/// Alternatively, a `CfgPath` can contain literal `PathBuf`, which will not be expaneded.
/// Alternatively, a `CfgPath` can contain literal `PathBuf`, which will not be expanded.
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(transparent)]
pub struct CfgPath(PathInner);
@ -128,7 +128,7 @@ impl CfgPath {
}
}
/// If the `CfgPath` is a string that should be expaneded, return the (unexpanded) string,
/// If the `CfgPath` is a string that should be expanded, return the (unexpanded) string,
///
/// Before use, this string would have be to expanded. So if you want a path to actually use,
/// call `path` instead.