Skip to content

Commit c720b02

Browse files
committed
fix: base changed to baseLength for better understanding
1 parent 0291fbd commit c720b02

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/thealgorithms/maths

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/maths/Area.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public static double surfaceAreaSquare(final double sideLength) {
122122
* @return area of given triangle
123123
*/
124124
public static double surfaceAreaTriangle(final double baseLength, final double height) {
125-
if (base <= 0) {
125+
if (baseLength<= 0) {
126126
throw new IllegalArgumentException(POSITIVE_BASE);
127127
}
128128
if (height <= 0) {

0 commit comments

Comments
 (0)