From 7a440e34ff3e7808864da656d6031a4a48cb2ff2 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 26 Aug 2024 17:53:02 +0200 Subject: [PATCH] rec: Fix a few typos in the settings files --- pdns/recursordist/settings/README.md | 4 ++-- pdns/recursordist/settings/generate.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/recursordist/settings/README.md b/pdns/recursordist/settings/README.md index 9d86c6d827..b8d7ab5190 100644 --- a/pdns/recursordist/settings/README.md +++ b/pdns/recursordist/settings/README.md @@ -6,10 +6,10 @@ Inside this directory, there is a `rust` subdirectory that contains the Rust cod The Rust code uses CXX for bridging between C++ and Rust. At the moment of writing, we only call Rust code from C++ and not vice versa. -Additionally, the Rust Serde crate (and specifically Serde-YAML) is used to generatec code to handle YAML. +Additionally, the Rust Serde crate (and specifically Serde-YAML) is used to generate code to handle YAML. The entry point for code generation is `generate.py`, which uses `table.py` to produce C++, Rust and .rst files. -See `generate.sh` for some details about the generation process. +See `generate.py` for some details about the generation process. This directory also contains a couple of `*-in.*` files which are included into files generated by the generation process. From the C++ point of view, several namespaces are defined: diff --git a/pdns/recursordist/settings/generate.py b/pdns/recursordist/settings/generate.py index f6d85ea483..6cffa922ea 100644 --- a/pdns/recursordist/settings/generate.py +++ b/pdns/recursordist/settings/generate.py @@ -5,7 +5,7 @@ # # For Rust it generates rust/src/lib.rs, containing the structs with # CXX and Serde annotations and associated code. rust-preamble-in.rs is -# included before the generated code and rus-bridge-in.rs inside the +# included before the generated code and rust-bridge-in.rs inside the # bridge module in the generated lib.rs. Header files generated by CXX # (lib.rs.h and cxx.h) are copied from deep inside the generated code # hierarchy into the rust subdir as well. @@ -763,7 +763,7 @@ def gen_newstyle_docs(srcdir, argentries): RUNTIME = '*runtime determined*' def generate(): - """Read table, validate and generate C++, Rst and .rst files""" + """Read table, validate and generate C++, Rust and .rst files""" srcdir = '.' gendir = '.' if len(sys.argv) == 3: -- 2.47.2