Skip to content

Commit d9ccc98

Browse files
authored
Merge pull request #1353 from daniil-konovalenko/patch-1
Fix #[pyclass] arguments description
2 parents 42ca48a + 74a8b32 commit d9ccc98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

guide/src/class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ assert_eq!(obj_ref.num, 1);
131131

132132
The `#[pyclass]` macro accepts the following parameters:
133133

134-
* `name=XXX` - Set the class name shown in Python code. By default, the struct name is used as the class name.
134+
* `name="XXX"` - Set the class name shown in Python code. By default, the struct name is used as the class name.
135135
* `freelist=XXX` - The `freelist` parameter adds support of free allocation list to custom class.
136136
The performance improvement applies to types that are often created and deleted in a row,
137137
so that they can benefit from a freelist. `XXX` is a number of items for the free list.

0 commit comments

Comments
 (0)