Skip to content

Commit 2bdcc88

Browse files
committed
Add missing definition of the 'w' variable
1 parent 3805d26 commit 2bdcc88

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

book/chrome.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ method for that:
137137
class BlockLayout:
138138
def word(self, node, word):
139139
# ...
140+
w = font.measure(word)
140141
if self.cursor_x + w > self.width:
141142
self.new_line()
142143
```

0 commit comments

Comments
 (0)