mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Update Javadoc for perimeterIrregularPolygon method (#7141)
Fixed incorrect @return description in perimeterIrregularPolygon method javadoc. Changed "trapezoid" to "irregular polygon" to accurately reflect what the method calculates.
This commit is contained in:
committed by
GitHub
parent
a14e1e3766
commit
e841d73837
@@ -27,7 +27,7 @@ public final class Perimeter {
|
||||
* @param side2 for length of side 2
|
||||
* @param side3 for length of side 3
|
||||
* @param sides for length of remaining sides
|
||||
* @return Perimeter of given trapezoid.
|
||||
* @return Perimeter of given irregular polygon.
|
||||
*/
|
||||
public static float perimeterIrregularPolygon(float side1, float side2, float side3, float... sides) {
|
||||
float perimeter = side1 + side2 + side3;
|
||||
|
||||
Reference in New Issue
Block a user