fixes comments

This commit is contained in:
damirka 2021-03-15 16:32:43 +03:00
parent b58db80005
commit 234eabd81c
2 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ impl ConstInput {
self.input.insert(key, value);
}
/// Parses main input definitions and stores them in `self`.
/// Parses constant input definitions and stores them in `self`.
pub fn parse(&mut self, definitions: Vec<Definition>) -> Result<(), InputParserError> {
for definition in definitions {
let name = definition.parameter.variable.value;
@ -62,8 +62,7 @@ impl ConstInput {
Ok(())
}
/// Returns an `Option` of the main function input at `name`. As a second
/// value in a tuple returns flag whether input is defined as a constant in input file.
/// Returns an `Option` of the constant main function input at `name`.
pub fn get(&self, name: &str) -> Option<Option<InputValue>> {
self.input.get(name).cloned()
}

View File

@ -62,8 +62,7 @@ impl MainInput {
Ok(())
}
/// Returns an `Option` of the main function input at `name`. As a second
/// value in a tuple returns flag whether input is defined as a constant in input file.
/// Returns an `Option` of the main function input at `name`.
pub fn get(&self, name: &str) -> Option<Option<InputValue>> {
self.input.get(name).cloned()
}