From b3e44dabdc280edc29a13884a78c49d1b152ec3d Mon Sep 17 00:00:00 2001 From: Fries Date: Sat, 24 Sep 2022 21:30:20 -0700 Subject: [PATCH] fix some spelling mistakes --- src/models.rs | 4 ++-- src/rpcs/search.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/models.rs b/src/models.rs index 79ef9ba..b34f11c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -69,7 +69,7 @@ impl From for PackageInfo { } } -/// Full packge info with all fields as a workaround +/// Full package info with all fields as a workaround /// as serde doesn't support aliases in flattened structs #[derive(Clone, Debug, Deserialize)] #[serde(rename_all = "PascalCase")] @@ -116,7 +116,7 @@ pub(crate) struct AURResponse { pub error: Option, } -/// Represents the type of aur response +/// Represents the type of AUR response #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(rename_all = "lowercase")] pub(crate) enum ResponseType { diff --git a/src/rpcs/search.rs b/src/rpcs/search.rs index 139b210..3929d05 100644 --- a/src/rpcs/search.rs +++ b/src/rpcs/search.rs @@ -30,13 +30,13 @@ pub enum SearchField { NameDesc, /// Searches by package maintainer Maintainer, - /// Searches for packages that depend on the given keywods + /// Searches for packages that depend on the given keywords Depends, /// Searches for packages that require the given keywords to be build MakeDepends, - /// Searches for packages that optionally depend on the given keywods + /// Searches for packages that optionally depend on the given keywords OptDepends, - /// Searches for packages that require the given keywods to be present + /// Searches for packages that require the given keywords to be present CheckDepends, }