Skip to content

Commit c2597a8

Browse files
authored
Fix typo on receiver variables (#600)
1 parent 8ecdf8b commit c2597a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structs/v8/shapes.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ type Triangle struct {
4040
}
4141

4242
// Area returns the area of the triangle.
43-
func (c Triangle) Area() float64 {
44-
return (c.Base * c.Height) * 0.5
43+
func (t Triangle) Area() float64 {
44+
return (t.Base * t.Height) * 0.5
4545
}

0 commit comments

Comments
 (0)