From 847a642d6ac5805348e11f2dce7826f016c67113 Mon Sep 17 00:00:00 2001 From: David Knaack Date: Tue, 13 Jun 2023 22:40:17 +0200 Subject: [PATCH] chore: fix typos (#5239) --- src/modules/swift.rs | 6 +++--- typos.toml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/swift.rs b/src/modules/swift.rs index 611410504..1ed11a092 100644 --- a/src/modules/swift.rs +++ b/src/modules/swift.rs @@ -60,10 +60,10 @@ pub fn module<'a>(context: &'a Context) -> Option> { fn parse_swift_version(swift_version: &str) -> Option { // 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()) } diff --git a/typos.toml b/typos.toml index bc511ced4..50bf0feed 100644 --- a/typos.toml +++ b/typos.toml @@ -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/*"]