Skip to content

Commit f49d3fa

Browse files
committed
oops
1 parent c90176a commit f49d3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl Drop for PyBitGeneratorGuard<'_> {
153153
// so nothing apart from us is allowed to change its state.
154154
impl PyBitGeneratorGuard<'_> {
155155
/// Drop the lock manually before `Drop::drop` tries to do it (used for testing).
156-
/// SAFETY: Can’t be used inside of a
156+
/// SAFETY: Can’t be used inside of a `Python::allow_threads` block.
157157
#[allow(dead_code)]
158158
unsafe fn try_drop(self) -> PyResult<()> {
159159
self.lock.call_method0("release")?;

0 commit comments

Comments
 (0)