Skip to content

Commit 42bd0e5

Browse files
kemingydavidhewitt
authored andcommitted
Update class.md (#4739)
1 parent 824ba56 commit 42bd0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guide/src/class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ create_interface!(FloatClass, String);
122122
#### Must be thread-safe
123123

124124
Python objects are freely shared between threads by the Python interpreter. This means that:
125-
- Python objects may be created and destroyed by different Python threads; therefore #[pyclass]` objects must be `Send`.
126-
- Python objects may be accessed by multiple python threads simultaneously; therefore `#[pyclass]` objects must be `Sync`.
125+
- Python objects may be created and destroyed by different Python threads; therefore `#[pyclass]` objects must be `Send`.
126+
- Python objects may be accessed by multiple Python threads simultaneously; therefore `#[pyclass]` objects must be `Sync`.
127127

128128
For now, don't worry about these requirements; simple classes will already be thread-safe. There is a [detailed discussion on thread-safety](./class/thread-safety.md) later in the guide.
129129

0 commit comments

Comments
 (0)