chore: fix typos (#5239)

This commit is contained in:
David Knaack 2023-06-13 22:40:17 +02:00 committed by GitHub
parent ca74c47702
commit 847a642d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -60,10 +60,10 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
fn parse_swift_version(swift_version: &str) -> Option<String> {
// split into ["Apple", "Swift", "version", "5.2.2", ...] or
// ["Swift", "version", "5.3-dev", ...]
let mut splited = swift_version.split_whitespace();
let _ = splited.position(|t| t == "version")?;
let mut split = swift_version.split_whitespace();
let _ = split.position(|t| t == "version")?;
// return "5.2.2" or "5.3-dev"
let version = splited.next()?;
let version = split.next()?;
Some(version.to_string())
}

View File

@ -7,5 +7,6 @@ esy = "esy"
numver = "numver"
afe = "afe"
extentions = "extentions" # TODO: should be extensions
worl = "worl" # typo on purpose
[files]
extend-exclude = ["CHANGELOG.md", "docs/*"]