Skip to content

Commit 88f6ad8

Browse files
authored
Merge pull request piglei#49 from cwjokaka/branch-patch
修正第15章变量名称
2 parents c49eac4 + 5dd2158 commit 88f6ad8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh_CN/15-thinking-in-edge-cases.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ while True:
429429

430430
```python
431431
while True:
432-
# 使用 % page_with 控制不要超过页面宽度
433-
element.position_x = (element.position_x + width_unit) % page_with
432+
# 使用 % page_width 控制不要超过页面宽度
433+
element.position_x = (element.position_x + width_unit) % page_width
434434
```
435435

436436
这样写的话,代码里的边界情况就连着那行 `if` 语句一起消失了。

0 commit comments

Comments
 (0)