Merge pull request #1353 from daniil-konovalenko/patch-1

Fix #[pyclass] arguments description
This commit is contained in:
David Hewitt 2021-01-02 17:00:13 +00:00 committed by GitHub
commit d9ccc98565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ assert_eq!(obj_ref.num, 1);
The `#[pyclass]` macro accepts the following parameters:
* `name=XXX` - Set the class name shown in Python code. By default, the struct name is used as the class name.
* `name="XXX"` - Set the class name shown in Python code. By default, the struct name is used as the class name.
* `freelist=XXX` - The `freelist` parameter adds support of free allocation list to custom class.
The performance improvement applies to types that are often created and deleted in a row,
so that they can benefit from a freelist. `XXX` is a number of items for the free list.