diff --git a/src/types/floatob.rs b/src/types/floatob.rs index 31511d90..5939a8e1 100644 --- a/src/types/floatob.rs +++ b/src/types/floatob.rs @@ -10,7 +10,7 @@ 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) +/// by using [`ToPyObject`](crate::conversion::ToPyObject) /// and [extract](struct.PyAny.html#method.extract) /// with `f32`/`f64`. #[repr(transparent)] diff --git a/src/types/num.rs b/src/types/num.rs index e28b795b..93d18804 100644 --- a/src/types/num.rs +++ b/src/types/num.rs @@ -46,7 +46,7 @@ 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) +/// by using [`ToPyObject`](crate::conversion::ToPyObject) /// and [extract](struct.PyAny.html#method.extract) /// with the primitive Rust integer types. #[repr(transparent)]