From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pbs-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id 0FCC41FF29F
	for <inbox@lore.proxmox.com>; Thu, 18 Jul 2024 15:05:11 +0200 (CEST)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id AAA07C31B;
	Thu, 18 Jul 2024 15:05:39 +0200 (CEST)
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pbs-devel@lists.proxmox.com
Date: Thu, 18 Jul 2024 15:05:34 +0200
Message-Id: <20240718130534.370768-4-m.sandoval@proxmox.com>
X-Mailer: git-send-email 2.39.2
In-Reply-To: <20240718130534.370768-1-m.sandoval@proxmox.com>
References: <20240718130534.370768-1-m.sandoval@proxmox.com>
MIME-Version: 1.0
X-SPAM-LEVEL: Spam detection results:  0
 AWL 0.123 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DMARC_MISSING             0.1 Missing DMARC policy
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
Subject: [pbs-devel] [PATCH proxmox 4/4] fix typos in strings
X-BeenThere: pbs-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox Backup Server development discussion
 <pbs-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pbs-devel>, 
 <mailto:pbs-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pbs-devel/>
List-Post: <mailto:pbs-devel@lists.proxmox.com>
List-Help: <mailto:pbs-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel>, 
 <mailto:pbs-devel-request@lists.proxmox.com?subject=subscribe>
Reply-To: Proxmox Backup Server development discussion
 <pbs-devel@lists.proxmox.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: pbs-devel-bounces@lists.proxmox.com
Sender: "pbs-devel" <pbs-devel-bounces@lists.proxmox.com>

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 proxmox-auth-api/examples/passwd.rs |  2 +-
 proxmox-client/src/client.rs        |  4 ++--
 proxmox-router/src/cli/command.rs   |  2 +-
 proxmox-router/tests/docs.rs        |  2 +-
 proxmox-schema/src/schema.rs        |  4 ++--
 proxmox-schema/tests/schema.rs      |  4 ++--
 proxmox-section-config/src/lib.rs   |  2 +-
 proxmox-tfa/src/totp.rs             |  2 +-
 proxmox-time/src/daily_duration.rs  | 10 +++++-----
 9 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/proxmox-auth-api/examples/passwd.rs b/proxmox-auth-api/examples/passwd.rs
index 0f9921bc..27816271 100644
--- a/proxmox-auth-api/examples/passwd.rs
+++ b/proxmox-auth-api/examples/passwd.rs
@@ -25,7 +25,7 @@ async fn run() -> Result<(), Error> {
         None => bail!("missing username or --check parameter"),
         Some(ck) if ck == "--check" => (
             args.next()
-                .ok_or_else(|| format_err!("expected username as paramter"))?
+                .ok_or_else(|| format_err!("expected username as parameter"))?
                 .try_into()?,
             false,
         ),
diff --git a/proxmox-client/src/client.rs b/proxmox-client/src/client.rs
index b840831d..bcbcbe73 100644
--- a/proxmox-client/src/client.rs
+++ b/proxmox-client/src/client.rs
@@ -400,7 +400,7 @@ impl HttpApiClient for Client {
         T: ?Sized + Serialize,
     {
         let params = serde_json::to_string(params)
-            .map_err(|err| Error::internal("failed to serialize parametres", err));
+            .map_err(|err| Error::internal("failed to serialize parameters", err));
 
         Box::pin(async move {
             let params = params?;
@@ -425,7 +425,7 @@ impl HttpApiClient for Client {
         T: ?Sized + Serialize,
     {
         let params = serde_json::to_string(params)
-            .map_err(|err| Error::internal("failed to serialize parametres", err));
+            .map_err(|err| Error::internal("failed to serialize parameters", err));
 
         Box::pin(async move {
             let params = params?;
diff --git a/proxmox-router/src/cli/command.rs b/proxmox-router/src/cli/command.rs
index b7875065..c1a26a6b 100644
--- a/proxmox-router/src/cli/command.rs
+++ b/proxmox-router/src/cli/command.rs
@@ -200,7 +200,7 @@ const API_METHOD_COMMAND_HELP: ApiMethod = ApiMethod::new(
                 "command",
                 true,
                 &ArraySchema::new(
-                    "Command. This may be a list in order to spefify nested sub-commands.",
+                    "Command. This may be a list in order to specify nested sub-commands.",
                     &StringSchema::new("Name.").schema(),
                 )
                 .schema(),
diff --git a/proxmox-router/tests/docs.rs b/proxmox-router/tests/docs.rs
index 00b5d65a..f23a872a 100644
--- a/proxmox-router/tests/docs.rs
+++ b/proxmox-router/tests/docs.rs
@@ -151,7 +151,7 @@ fn expected_nested_usage_text() -> &'static str {
 Get help about specified command (or sub-command).
 
 ``<command>`` : ``<string>``
-  Command. This may be a list in order to spefify nested sub-commands. Can be
+  Command. This may be a list in order to specify nested sub-commands. Can be
   specified more than once.
 
 Optional parameters:
diff --git a/proxmox-schema/src/schema.rs b/proxmox-schema/src/schema.rs
index afe5559d..5054422d 100644
--- a/proxmox-schema/src/schema.rs
+++ b/proxmox-schema/src/schema.rs
@@ -1650,7 +1650,7 @@ fn do_parse_parameter_strings(
                             }
                         }
                         _ => {
-                            errors.push(key.into(), format_err!("expected array - type missmatch"))
+                            errors.push(key.into(), format_err!("expected array - type mismatch"))
                         }
                     }
                 }
@@ -1679,7 +1679,7 @@ fn do_parse_parameter_strings(
                 Value::Array(ref mut array) => {
                     array.push(Value::String(value.to_string()));
                 }
-                _ => errors.push(key.into(), format_err!("expected array - type missmatch")),
+                _ => errors.push(key.into(), format_err!("expected array - type mismatch")),
             }
         } else {
             errors.push(
diff --git a/proxmox-schema/tests/schema.rs b/proxmox-schema/tests/schema.rs
index ed09bb18..a918f6d1 100644
--- a/proxmox-schema/tests/schema.rs
+++ b/proxmox-schema/tests/schema.rs
@@ -338,7 +338,7 @@ fn test_verify_complex_object() {
 fn test_verify_complex_array() {
     {
         const PARAM_SCHEMA: Schema =
-            ArraySchema::new("Integer List.", &IntegerSchema::new("Soemething").schema()).schema();
+            ArraySchema::new("Integer List.", &IntegerSchema::new("Something").schema()).schema();
 
         const SCHEMA: ObjectSchema = ObjectSchema::new(
             "Parameters.",
@@ -369,7 +369,7 @@ fn test_verify_complex_array() {
 
     {
         const PARAM_SCHEMA: Schema =
-            ArraySchema::new("Integer List.", &IntegerSchema::new("Soemething").schema())
+            ArraySchema::new("Integer List.", &IntegerSchema::new("Something").schema())
                 .min_length(1)
                 .max_length(3)
                 .schema();
diff --git a/proxmox-section-config/src/lib.rs b/proxmox-section-config/src/lib.rs
index 8ecfd987..b61ed7f2 100644
--- a/proxmox-section-config/src/lib.rs
+++ b/proxmox-section-config/src/lib.rs
@@ -702,7 +702,7 @@ impl SectionConfig {
         _data: &Value,
     ) -> Result<String, Error> {
         if type_name != section_id {
-            bail!("gut unexpexted section type");
+            bail!("gut unexpected section type");
         }
 
         Ok(format!("[{}]\n", section_id))
diff --git a/proxmox-tfa/src/totp.rs b/proxmox-tfa/src/totp.rs
index ac725804..940af542 100644
--- a/proxmox-tfa/src/totp.rs
+++ b/proxmox-tfa/src/totp.rs
@@ -227,7 +227,7 @@ impl Totp {
     pub fn builder_from_hex(secret: &str) -> Result<TotpBuilder, Error> {
         Ok(Self::builder().secret(
             hex::decode(secret)
-                .map_err(|err| Error::decode("not a valid hexademical string", err))?,
+                .map_err(|err| Error::decode("not a valid hexadecimal string", err))?,
         ))
     }
 
diff --git a/proxmox-time/src/daily_duration.rs b/proxmox-time/src/daily_duration.rs
index 8f4459d1..adcbc637 100644
--- a/proxmox-time/src/daily_duration.rs
+++ b/proxmox-time/src/daily_duration.rs
@@ -149,24 +149,24 @@ mod test {
 
         if duration.start.hour != start_h {
             bail!(
-                "start hour missmatch, extected {}, got {:?}",
+                "start hour mismatch, extected {}, got {:?}",
                 start_h,
                 duration
             );
         }
         if duration.start.minute != start_m {
             bail!(
-                "start minute missmatch, extected {}, got {:?}",
+                "start minute mismatch, extected {}, got {:?}",
                 start_m,
                 duration
             );
         }
         if duration.end.hour != end_h {
-            bail!("end hour missmatch, extected {}, got {:?}", end_h, duration);
+            bail!("end hour mismatch, extected {}, got {:?}", end_h, duration);
         }
         if duration.end.minute != end_m {
             bail!(
-                "end minute missmatch, extected {}, got {:?}",
+                "end minute mismatch, extected {}, got {:?}",
                 end_m,
                 duration
             );
@@ -174,7 +174,7 @@ mod test {
 
         if duration.days != expected_days {
             bail!(
-                "weekday missmatch, extected {:?}, got {:?}",
+                "weekday mismatch, extected {:?}, got {:?}",
                 expected_days,
                 duration
             );
-- 
2.39.2



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel