Fix a number of typos in comments
This commit is contained in:
parent
8e6c28da7b
commit
4c58a3d842
10 changed files with 26 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue