Merge pull request #2641 from smheidrich/fix-types-docs-topyobject-links
docs: Fix links to ToPyObject in PyLong and PyFloat docs
This commit is contained in:
commit
a38a75da34
|
@ -10,8 +10,8 @@ use std::os::raw::c_double;
|
|||
/// Represents a Python `float` object.
|
||||
///
|
||||
/// You can usually avoid directly working with this type
|
||||
/// by using [`ToPyObject`](trait.ToPyObject.html)
|
||||
/// and [extract](struct.PyAny.html#method.extract)
|
||||
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
|
||||
/// and [`extract`](PyAny::extract)
|
||||
/// with `f32`/`f64`.
|
||||
#[repr(transparent)]
|
||||
pub struct PyFloat(PyAny);
|
||||
|
|
|
@ -46,8 +46,8 @@ macro_rules! int_fits_larger_int {
|
|||
/// Represents a Python `int` object.
|
||||
///
|
||||
/// You can usually avoid directly working with this type
|
||||
/// by using [`ToPyObject`](trait.ToPyObject.html)
|
||||
/// and [extract](struct.PyAny.html#method.extract)
|
||||
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
|
||||
/// and [`extract`](PyAny::extract)
|
||||
/// with the primitive Rust integer types.
|
||||
#[repr(transparent)]
|
||||
pub struct PyLong(PyAny);
|
||||
|
|
Loading…
Reference in New Issue