From: Otto Moerbeek Date: Tue, 12 Sep 2023 07:59:21 +0000 (+0200) Subject: Fix typo in function name (both def and caller) X-Git-Tag: rec-5.0.0-alpha1~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13008%2Fhead;p=thirdparty%2Fpdns.git Fix typo in function name (both def and caller) --- diff --git a/pdns/recursordist/settings/generate.py b/pdns/recursordist/settings/generate.py index b3e3d7df45..84051fb6cd 100644 --- a/pdns/recursordist/settings/generate.py +++ b/pdns/recursordist/settings/generate.py @@ -337,7 +337,7 @@ def is_value_rust_default(typ, value): return value == '' return False -def gen_rust_forwardzonevec_default_fucntions(name): +def gen_rust_forwardzonevec_default_functions(name): """Generate Rust code for the default handling of a vector for ForwardZones""" ret = f'// DEFAULT HANDLING for {name}\n' ret += f'fn default_value_{name}() -> Vec {{\n' @@ -397,7 +397,7 @@ def gen_rust_default_functions(entry, name, rust_type): if entry['type'] in (LType.ListSocketAddresses, LType.ListSubnets, LType.ListStrings): return gen_rust_stringvec_default_functions(entry, name) if entry['type'] == LType.ListForwardZones: - return gen_rust_forwardzonevec_default_fucntions(name) + return gen_rust_forwardzonevec_default_functions(name) if entry['type'] == LType.ListAuthZones: return gen_rust_authzonevec_default_functions(name) ret = f'// DEFAULT HANDLING for {name}\n'