We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ecdf8b commit c2597a8Copy full SHA for c2597a8
structs/v8/shapes.go
@@ -40,6 +40,6 @@ type Triangle struct {
40
}
41
42
// Area returns the area of the triangle.
43
-func (c Triangle) Area() float64 {
44
- return (c.Base * c.Height) * 0.5
+func (t Triangle) Area() float64 {
+ return (t.Base * t.Height) * 0.5
45
0 commit comments