mirror of
https://github.com/starship/starship.git
synced 2024-11-22 00:04:05 +01:00
chore: fix typos (#5239)
This commit is contained in:
parent
ca74c47702
commit
847a642d6a
@ -60,10 +60,10 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
|||||||
fn parse_swift_version(swift_version: &str) -> Option<String> {
|
fn parse_swift_version(swift_version: &str) -> Option<String> {
|
||||||
// split into ["Apple", "Swift", "version", "5.2.2", ...] or
|
// split into ["Apple", "Swift", "version", "5.2.2", ...] or
|
||||||
// ["Swift", "version", "5.3-dev", ...]
|
// ["Swift", "version", "5.3-dev", ...]
|
||||||
let mut splited = swift_version.split_whitespace();
|
let mut split = swift_version.split_whitespace();
|
||||||
let _ = splited.position(|t| t == "version")?;
|
let _ = split.position(|t| t == "version")?;
|
||||||
// return "5.2.2" or "5.3-dev"
|
// return "5.2.2" or "5.3-dev"
|
||||||
let version = splited.next()?;
|
let version = split.next()?;
|
||||||
|
|
||||||
Some(version.to_string())
|
Some(version.to_string())
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,6 @@ esy = "esy"
|
|||||||
numver = "numver"
|
numver = "numver"
|
||||||
afe = "afe"
|
afe = "afe"
|
||||||
extentions = "extentions" # TODO: should be extensions
|
extentions = "extentions" # TODO: should be extensions
|
||||||
|
worl = "worl" # typo on purpose
|
||||||
[files]
|
[files]
|
||||||
extend-exclude = ["CHANGELOG.md", "docs/*"]
|
extend-exclude = ["CHANGELOG.md", "docs/*"]
|
||||||
|
Loading…
Reference in New Issue
Block a user