From 3516d460744483ce71ef0bd89a2d43c2ea8742f3 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 23 Nov 2019 15:53:12 +1100 Subject: [PATCH] Tidy comments --- validator_client/src/config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/validator_client/src/config.rs b/validator_client/src/config.rs index c94673a468..3f09560c91 100644 --- a/validator_client/src/config.rs +++ b/validator_client/src/config.rs @@ -46,7 +46,8 @@ impl Default for Config { } impl Config { - /// Parses the CLI arguments and attempts to load the client configuration. + /// Returns a `Default` implementation of `Self` with some parameters modified by the supplied + /// `cli_args`. pub fn from_cli(cli_args: &ArgMatches) -> Result { let mut config = Config::default(); @@ -72,7 +73,8 @@ impl Config { } } -/// Parses the `testnet` CLI subcommand. +/// Parses the `testnet` CLI subcommand, modifying the `config` based upon the parametes in +/// `cli_args`. fn process_testnet_subcommand(cli_args: &ArgMatches, mut config: Config) -> Result { config.key_source = match cli_args.subcommand() { ("insecure", Some(sub_cli_args)) => {