Skip to content

Commit

Permalink
Improve PyLong/PyFloat doc links to PyAny::extract
Browse files Browse the repository at this point in the history
  • Loading branch information
smheidrich authored and davidhewitt committed Sep 29, 2022
1 parent 023d7fe commit 470acbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/floatob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::os::raw::c_double;
///
/// You can usually avoid directly working with this type
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
/// and [extract](struct.PyAny.html#method.extract)
/// and [`extract`](PyAny::extract)
/// with `f32`/`f64`.
#[repr(transparent)]
pub struct PyFloat(PyAny);
Expand Down
2 changes: 1 addition & 1 deletion src/types/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ macro_rules! int_fits_larger_int {
///
/// You can usually avoid directly working with this type
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
/// and [extract](struct.PyAny.html#method.extract)
/// and [`extract`](PyAny::extract)
/// with the primitive Rust integer types.
#[repr(transparent)]
pub struct PyLong(PyAny);
Expand Down

0 comments on commit 470acbb

Please sign in to comment.