Skip to content

Commit 554a161

Browse files
committed
Fix doc warnings "no item named X in scope"
1 parent 288b632 commit 554a161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Context {
128128
}
129129
}
130130

131-
/// Add a wrapped #[pyfunction] or #[pymodule] using its own `__name__`.
131+
/// Add a wrapped `#[pyfunction]` or `#[pymodule]` using its own `__name__`.
132132
///
133133
/// Use this with `pyo3::wrap_pyfunction` or `pyo3::wrap_pymodule`.
134134
///
@@ -158,7 +158,7 @@ impl Context {
158158
self.add_wrapped_with_gil(Python::acquire_gil().python(), wrapper);
159159
}
160160

161-
/// Add a wrapped #[pyfunction] or #[pymodule] using its own `__name__`.
161+
/// Add a wrapped `#[pyfunction]` or `#[pymodule]` using its own `__name__`.
162162
///
163163
/// See [Context::add_wrapped].
164164
pub fn add_wrapped_with_gil<'p>(&self, py: Python<'p>, wrapper: &impl Fn(Python) -> PyResult<&PyCFunction>) {

0 commit comments

Comments
 (0)