consistent
This commit is contained in:
parent
623da5d093
commit
3ead9c1397
@ -53,8 +53,9 @@ func main() {
|
|||||||
s := square{width: 3, height: 4}
|
s := square{width: 3, height: 4}
|
||||||
c := circle{radius: 5}
|
c := circle{radius: 5}
|
||||||
|
|
||||||
// The `circle` and `square` struct types both satisfy
|
// The `circle` and `square` struct types both
|
||||||
// the `geometry` interface so we can use instances of
|
// implement the `geometry` interface so we can use
|
||||||
|
// instances of
|
||||||
// these structs as arguments to `measure.
|
// these structs as arguments to `measure.
|
||||||
measure(s)
|
measure(s)
|
||||||
measure(c)
|
measure(c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user