1
1
//! Utilities to register config parameters.
2
2
3
- /// Register a optional parameter in the config map when it's not None.
3
+ /// Register an optional parameter in the config map when it's not None.
4
4
#[ macro_export]
5
5
macro_rules! register_config_value_option {
6
6
( $map: ident, $namespace: expr, $self: ident. $command: ident ) => { {
@@ -27,7 +27,7 @@ macro_rules! register_config_value_bool {
27
27
28
28
/// Register a parameter in the config map using the identifier as key.
29
29
/// Example:
30
- /// register_config_value(map, namespace, self.identifier)
30
+ /// register_config_value! (map, namespace, self.identifier)
31
31
///
32
32
/// The same macro, with a different syntax, is used to insert the given value without transformation.
33
33
/// Iit is designed to be used by other macros.
@@ -157,7 +157,7 @@ mod tests {
157
157
}
158
158
159
159
#[ test]
160
- fn test_register_config_value_optionion_macro_not_add_none_value ( ) {
160
+ fn test_register_config_value_option_macro_not_add_none_value ( ) {
161
161
struct Fake {
162
162
option_with_value : Option < String > ,
163
163
option_none : Option < String > ,
@@ -184,7 +184,7 @@ mod tests {
184
184
}
185
185
186
186
#[ test]
187
- fn test_register_config_value_optionion_macro_with_mapping_transform_value_before_adding_it ( ) {
187
+ fn test_register_config_value_option_macro_with_mapping_transform_value_before_adding_it ( ) {
188
188
struct Fake {
189
189
option_with_value : Option < String > ,
190
190
option_none : Option < String > ,
0 commit comments