mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-08 06:43:14 +08:00
Update perimeter.cpp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user