Update perimeter.cpp

This commit is contained in:
Mohammad Islam
2022-01-29 22:05:34 -07:00
committed by GitHub
parent e157bf934b
commit 1d13bff3fa

View File

@@ -31,7 +31,7 @@ T square_perimeter(T length) {
}
/**
* @brief perimeter of a [rectangle](https://en.wikipedia.org/wiki/Rectangle) ( 2(l * w) )
* @brief perimeter of a [rectangle](https://en.wikipedia.org/wiki/Rectangle) ( 2(l + w) )
* @param length is the length of the rectangle
* @param width is the width of the rectangle
* @returns perimeter of the rectangle
@@ -277,4 +277,4 @@ static void test() {
int main() {
test(); // run self-test implementations
return 0;
}
}