Skip to content

Commit fe2d7f8

Browse files
authored
fix broken link in docs (#4940)
1 parent ffd7276 commit fe2d7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/conversions/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ struct RustyStruct {
532532
```
533533

534534
### `IntoPyObject`
535-
The ['IntoPyObject'] trait defines the to-python conversion for a Rust type. All types in PyO3 implement this trait,
535+
The [`IntoPyObject`] trait defines the to-python conversion for a Rust type. All types in PyO3 implement this trait,
536536
as does a `#[pyclass]` which doesn't use `extends`.
537537

538538
This trait defines a single method, `into_pyobject()`, which returns a [`Result`] with `Ok` and `Err` types depending on the input value. For convenience, there is a companion [`IntoPyObjectExt`] trait which adds methods such as `into_py_any()` which converts the `Ok` and `Err` types to commonly used types (in the case of `into_py_any()`, `Py<PyAny>` and `PyErr` respectively).

0 commit comments

Comments
 (0)