Skip to content

Commit 6ed80eb

Browse files
Update content/api/magnet.md
Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
1 parent 47a2a29 commit 6ed80eb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

content/api/magnet.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ magnet_on = r.magnet.energised
2929

3030
## Checking if a container is nearby
3131

32-
The magnet can tell you if there is an object in range to be picked up. You can check if any object is in range by accessing the `nearby` property.
32+
The magnet can tell you if there is an object in range to be picked up. You can check if any object is in range by accessing the `nearby` method:
3333
```python
34-
# Get if a container is nearby
35-
is_nearby = r.magnet.nearby # True or False
36-
```
34+
# Is there a container nearby?
35+
is_nearby = r.magnet.nearby() # True or False

0 commit comments

Comments
 (0)