fix doc comment

This commit is contained in:
NikVolf 2018-01-23 14:43:09 +03:00
parent d340b99016
commit 2133f782a4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ impl<'a> RuntimeArgs<'a> {
Ok(self.nth_value(idx)?.try_into().map_err(|_| Error::Value("Invalid argument cast".to_owned()))?)
}
/// Extract argument as a runtime value by index `idx` returning error is not enougn arguments
/// Extract argument as a runtime value by index `idx` returning error is not enough arguments
pub fn nth_value(&self, idx: usize) -> Result<RuntimeValue, Error> {
if self.0.len() <= idx {
return Err(Error::Value("Invalid argument index".to_owned()));