Skip to content

Commit

Permalink
refs modelica#2860: Fix documentation of And for empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed May 5, 2019
1 parent dd06cb9 commit 1fa0ce3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modelica/Blocks/MathBoolean.mo
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ end MultiSwitch;
extends Modelica.Blocks.Interfaces.PartialBooleanMISO;

equation
y = Modelica.Math.BooleanVectors.allTrue(
y = Modelica.Math.BooleanVectors.andTrue(
u);
annotation (defaultComponentName="and1", Icon(graphics={Text(
extent={{-76,40},{60,-40}},
Expand All @@ -121,7 +121,7 @@ The usage is demonstrated, e.g., in example
<p>
If no connection to the input connector \"u\" is present,
the output is set to <strong>false</strong>: y=false.
the output is set to <strong>true</strong>: y=true.
</p>
</html>"));
end And;
Expand Down Expand Up @@ -203,7 +203,7 @@ the output is set to <strong>false</strong>: y=false.
extends Modelica.Blocks.Interfaces.PartialBooleanMISO;

equation
y = not Modelica.Math.BooleanVectors.allTrue(
y = not Modelica.Math.BooleanVectors.andTrue(
u);
annotation (defaultComponentName="nand1", Icon(graphics={Text(
extent={{-78,36},{64,-30}},
Expand Down

0 comments on commit 1fa0ce3

Please sign in to comment.