Fix a number of typos in comments

This commit is contained in:
Ben Buhse 2026-02-22 17:51:17 -06:00
commit 4c58a3d842
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
10 changed files with 26 additions and 19 deletions

View file

@ -110,7 +110,7 @@ pub fn load(config: *Config, parser: *kdl.Parser, name: ?[]const u8, hostname: ?
.dwtp,
=> |cmd| {
// These all have arguments, but we can use compile time constructs to reduce
// code re-use here.
// code reuse here.
// Because all the fields are optional, we have to use @typeInfo and get the optional's child type.
const field_name = @tagName(cmd);
const FieldType = @typeInfo(@TypeOf(@field(input_config, field_name))).optional.child;