Skip to content

Commit d0999e7

Browse files
committed
Add a comment
1 parent 6349206 commit d0999e7

File tree

1 file changed

+1
-1
lines changed
  • src/elements/expr/arithmetic

1 file changed

+1
-1
lines changed

src/elements/expr/arithmetic/word.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub fn str_to_num(name: &str, core: &mut ShellCore) -> Result<ArithElem, String>
7070
/* resolve the case where the name is an arithmetic operation */
7171
let mut f = Feeder::new(&name);
7272
if let Some(mut a) = ArithmeticExpr::parse(&mut f, core, false) {
73-
if a.elements.len() == 1 {
73+
if a.elements.len() == 1 { // In this case, the element is not changed by the evaluation.
7474
return Err(error::syntax(&name));
7575
}
7676

0 commit comments

Comments
 (0)