]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Fix a couple typos in the Rust generator and bridge 14891/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Nov 2024 13:13:50 +0000 (14:13 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 Nov 2024 13:13:50 +0000 (14:13 +0100)
pdns/recursordist/settings/generate.py
pdns/recursordist/settings/rust-bridge-in.rs

index 66a805572b9918e5baa2265ca02b66a226cfa015..bae4efc1e6f63a51c49965437cb4cfabbd575f08 100644 (file)
@@ -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 {
index 4b42ad61524324af0a64b99e8446867f359ab7a4..d43bfe502eccaae294c5b212809dd9142c2a55af 100644 (file)
@@ -248,7 +248,7 @@ pub struct ProxyMapping {
     domains: Vec<String>,
 }
 
-// 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<()>;