Skip to content

Commit 9f56272

Browse files
HaoZekeoknozor
authored andcommitted
docs: Fix minor grammar issue
1 parent 2e7b651 commit 9f56272

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/dots.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ impl Dot {
181181
} else {
182182
Err(anyhow!(format!(
183183
"{} {:?}",
184-
"Path does not exists :".red(),
184+
"Path does not exist :".red(),
185185
path
186186
)))
187187
}
@@ -201,7 +201,7 @@ impl DotOverride {
201201
let source = match (self.source(), origin) {
202202
(Some(source), _) => source,
203203
(None, Some(origin)) => origin,
204-
_ => panic!("Dot as no source path"),
204+
_ => panic!("Dot has no source path"),
205205
};
206206

207207
let vars = self.vars().unwrap_or_else(Dot::default_vars);

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl Bombadil {
4747
pub fn link_self_config(config_path: Option<PathBuf>) -> Result<()> {
4848
let xdg_config_dir = dirs::config_dir();
4949
if xdg_config_dir.is_none() {
50-
return Err(anyhow!("$XDG_CONFIG does not exists"));
50+
return Err(anyhow!("$XDG_CONFIG does not exist"));
5151
}
5252

5353
let xdg_config = Settings::bombadil_config_xdg_path()?;

src/settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ impl Settings {
204204
};
205205

206206
if path.exists().not() {
207-
return Err(anyhow!("Dotfiles directory {:?} does not exists", &path));
207+
return Err(anyhow!("Dotfiles directory {:?} does not exist", &path));
208208
}
209209

210210
Ok(path)

0 commit comments

Comments
 (0)