Skip to content

Commit fa0e7e6

Browse files
authored
feat: cosmetic work for the "URL" and "repository" spelling (#3152)
1 parent 81a0cf4 commit fa0e7e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yazi-cli/src/package/dependency.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ impl FromStr for Dependency {
6767
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
6868
let mut parts = s.splitn(2, ':');
6969

70-
let Some(parent) = parts.next() else { bail!("Package url cannot be empty") };
70+
let Some(parent) = parts.next() else { bail!("Package URL cannot be empty") };
7171
let child = parts.next().unwrap_or_default();
7272

7373
let Some((_, repo)) = parent.split_once('/') else {
74-
bail!("Package url `{parent}` must be in the format `owner/repo`")
74+
bail!("Package URL `{parent}` must be in the format `owner/repository`")
7575
};
7676

7777
let name = if child.is_empty() { repo } else { child };

0 commit comments

Comments
 (0)