Skip to content

Commit 9647235

Browse files
committed
Fix vision code typo
1 parent b702522 commit 9647235

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

programming/vision/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ while True:
3434
print("I can see", len(markers), "markers:")
3535

3636
for marker in markers:
37-
print(" - Marker #{0} is {1} metres away".format(marker.id, marker.distance / 1000))
37+
print("Marker #{0} is {1} metres away".format(
38+
marker.id,
39+
marker.position.distance / 1000,
40+
))
3841
~~~~~
3942

4043
<div class="info">

0 commit comments

Comments
 (0)