mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-23 23:23:50 +03:00
fixes comments
This commit is contained in:
parent
b58db80005
commit
234eabd81c
@ -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()
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user