We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90176a commit f49d3faCopy full SHA for f49d3fa
src/random.rs
@@ -153,7 +153,7 @@ impl Drop for PyBitGeneratorGuard<'_> {
153
// so nothing apart from us is allowed to change its state.
154
impl PyBitGeneratorGuard<'_> {
155
/// Drop the lock manually before `Drop::drop` tries to do it (used for testing).
156
- /// SAFETY: Can’t be used inside of a
+ /// SAFETY: Can’t be used inside of a `Python::allow_threads` block.
157
#[allow(dead_code)]
158
unsafe fn try_drop(self) -> PyResult<()> {
159
self.lock.call_method0("release")?;
0 commit comments