Skip to content

Commit 2745528

Browse files
committed
Merge commit 'b72131c99f20b04f4af6b9917e891e139024fb94' into ja
2 parents 09369d9 + b72131c commit 2745528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ebook/02.5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ method的语法如下:
160160
v := 0.00
161161
k := Color(WHITE)
162162
for _, b := range bl {
163-
if b.Volume() > v {
164-
v = b.Volume()
163+
if bv := b.Volume(); bv > v {
164+
v = bv
165165
k = b.color
166166
}
167167
}

0 commit comments

Comments
 (0)