Skip to content

Commit b8b6b47

Browse files
Icxoludavidhewitt
andauthored
reword docs
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
1 parent 91ef5fe commit b8b6b47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,13 @@ impl<'a, 'py, T> IntoPyObject<'py> for &'a Py<T> {
456456
/// [`Cow::Owned`]: std::borrow::Cow::Owned
457457
458458
pub trait FromPyObject<'a, 'py>: Sized {
459-
/// Extracts `Self` from the bound smart pointer `obj`.
459+
/// Extracts `Self` from the Python object `obj`.
460460
///
461461
/// Users are advised against calling this method directly: instead, use this via
462462
/// [`Bound<'_, PyAny>::extract`] or [`Py::extract`].
463463
fn extract(obj: Borrowed<'a, 'py, PyAny>) -> PyResult<Self>;
464464

465-
/// Deprecated name for [`FromPyObject::extract`]
465+
/// Deprecated form of [`FromPyObject::extract`]
466466
#[deprecated(since = "0.23.0", note = "replaced by `FromPyObject::extract`")]
467467
fn extract_bound(ob: &'a Bound<'py, PyAny>) -> PyResult<Self> {
468468
Self::extract(ob.as_borrowed())

0 commit comments

Comments
 (0)