From: Remi Gacogne Date: Tue, 26 Nov 2024 13:13:50 +0000 (+0100) Subject: rec: Fix a couple typos in the Rust generator and bridge X-Git-Tag: rec-5.2.0-rc1~32^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14891%2Fhead;p=thirdparty%2Fpdns.git rec: Fix a couple typos in the Rust generator and bridge --- 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<()>;