From 0bcf7236d5b20d291876620edba4ba79404b15ce Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 26 Nov 2024 14:13:50 +0100 Subject: [PATCH] rec: Fix a couple typos in the Rust generator and bridge --- pdns/recursordist/settings/generate.py | 2 +- pdns/recursordist/settings/rust-bridge-in.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pdns/recursordist/settings/generate.py b/pdns/recursordist/settings/generate.py index 66a805572b..bae4efc1e6 100644 --- a/pdns/recursordist/settings/generate.py +++ b/pdns/recursordist/settings/generate.py @@ -509,7 +509,7 @@ def write_rust_section(file, section, entries, default_funcs): # # Each section als has a Default implementation, so that a section with all entries having a default -# value does not get generated into a yaml section. Such a tarit looks like: +# value does not get generated into a yaml section. Such a trait looks like: # #impl Default for recsettings::ForwardZone { # fn default() -> Self { diff --git a/pdns/recursordist/settings/rust-bridge-in.rs b/pdns/recursordist/settings/rust-bridge-in.rs index 4b42ad6152..d43bfe502e 100644 --- a/pdns/recursordist/settings/rust-bridge-in.rs +++ b/pdns/recursordist/settings/rust-bridge-in.rs @@ -248,7 +248,7 @@ pub struct ProxyMapping { domains: Vec, } -// A struct holding both a vector of forward zones and a vector o auth zones, used by REST API code +// A struct holding both a vector of forward zones and a vector of auth zones, used by REST API code #[derive(Deserialize, Serialize, Debug, PartialEq)] #[serde(deny_unknown_fields)] pub struct ApiZones { @@ -364,7 +364,7 @@ extern "Rust" { // Merge a string representing YAML settings into a existing setttings struct fn merge(lhs: &mut Recursorsettings, rhs: &str) -> Result<()>; - // Validate the sections inside the main settings struct, sections themselves will valdiate their fields + // Validate the sections inside the main settings struct, sections themselves will validate their fields fn validate(self: &Recursorsettings) -> Result<()>; // The validate function below are "hand-crafted" as their structs are not generated fn validate(self: &AuthZone, field: &str) -> Result<()>; -- 2.47.2