Skip to content

Commit 4eced3b

Browse files
committed
refacto: Syntax correction in comments
1 parent 40ced91 commit 4eced3b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Mithril-cli-helper
22

3-
An internal crate to provide tools for Mithril clients.
3+
An internal crate to provide tools for Mithril CLIs.

internal/mithril-cli-helper/src/source_config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Utilities to register config parameters.
22
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.
44
#[macro_export]
55
macro_rules! register_config_value_option {
66
( $map:ident, $namespace:expr, $self:ident.$command:ident ) => {{
@@ -27,7 +27,7 @@ macro_rules! register_config_value_bool {
2727

2828
/// Register a parameter in the config map using the identifier as key.
2929
/// Example:
30-
/// register_config_value(map, namespace, self.identifier)
30+
/// register_config_value!(map, namespace, self.identifier)
3131
///
3232
/// The same macro, with a different syntax, is used to insert the given value without transformation.
3333
/// Iit is designed to be used by other macros.
@@ -157,7 +157,7 @@ mod tests {
157157
}
158158

159159
#[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() {
161161
struct Fake {
162162
option_with_value: Option<String>,
163163
option_none: Option<String>,
@@ -184,7 +184,7 @@ mod tests {
184184
}
185185

186186
#[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() {
188188
struct Fake {
189189
option_with_value: Option<String>,
190190
option_none: Option<String>,

0 commit comments

Comments
 (0)