From f0fc293d0e45116891567fff2f9c3d02b8f46eed Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Sun, 19 Sep 2021 14:43:06 +0900 Subject: [PATCH] fix typo --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 4ca66e5..95c601f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -288,7 +288,7 @@ fn expand_path(path: &Path) -> Option { let path = path.to_str()?; expanded_path = if cfg!(unix) && path.starts_with('$') { expanded_path.join(std::env::var(path.strip_prefix('$')?).unwrap_or_default()) - } else if cfg!(winddows) && path.starts_with('%') && path.ends_with('%') { + } else if cfg!(windows) && path.starts_with('%') && path.ends_with('%') { expanded_path .join(std::env::var(path.strip_prefix('%')?.strip_suffix('%')?).unwrap_or_default()) } else {