Modify rule S4487: Fix error in code example (#4644)

This commit is contained in:
Sebastien Marichal 2025-01-31 15:47:52 +01:00 committed by GitHub
parent 7e54acfafa
commit 1e63f6a274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,13 +13,13 @@ public class Rectangle
{
this.length = length;
this.width = width;
}
}
public int Surface
{
get
{
return length * width;
return length * length;
}
}
}
@ -56,4 +56,4 @@ public class Rectangle
* CWE - https://cwe.mitre.org/data/definitions/563[CWE-563 - Assignment to Variable without Use ('Unused Variable')]
include::../rspecator.adoc[]
include::../rspecator.adoc[]