mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
expr: add comment in syntax_tree.rs
This commit is contained in:
parent
5a732dd21a
commit
0df561e256
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ impl AstNode {
|
|||
{
|
||||
let mut out = Vec::with_capacity(operands.len());
|
||||
let mut operands = operands.iter();
|
||||
|
||||
// check the first value before `|`, stop evaluate and return directly if it is true.
|
||||
// push dummy to pass the check of `len() == 2`
|
||||
if op_type == "|" {
|
||||
if let Some(value) = operands.next() {
|
||||
let value = value.evaluate()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue