Skip to content

Commit 51a672b

Browse files
davidhewittIcxolu
andauthored
Apply suggestions from code review
Co-authored-by: Icxolu <[email protected]>
1 parent d54b631 commit 51a672b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sync/once_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<T> PyOnceLock<T> {
4747
}
4848
}
4949

50-
/// Get a reference to the contained value, or `None` if hte cell has not yet been written.
50+
/// Get a reference to the contained value, or `None` if the cell has not yet been written.
5151
#[inline]
5252
pub fn get(&self, _py: Python<'_>) -> Option<&T> {
5353
self.inner.get()

src/types/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl PyModule {
8080
/// ```
8181
///
8282
/// If you want to import a class, you can store a reference to it with
83-
/// [`PyOnceLock::import`][crate::sync::PyOnceLock#method.import].
83+
/// [`PyOnceLock::import`][crate::sync::PyOnceLock::import].
8484
pub fn import<'py, N>(py: Python<'py>, name: N) -> PyResult<Bound<'py, PyModule>>
8585
where
8686
N: IntoPyObject<'py, Target = PyString>,

0 commit comments

Comments
 (0)