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 016eb7a commit 1f7f37fCopy full SHA for 1f7f37f
src/random.rs
@@ -24,9 +24,9 @@
24
//! With the [`rand`] crate installed, you can also use the [`rand::Rng`] APIs from the [`PyBitGeneratorGuard`]:
25
//!
26
//! ```
27
-//! use pyo3::prelude::*;
+//! # use pyo3::prelude::*;
28
//! use rand::Rng as _;
29
-//! use numpy::random::{PyBitGenerator, PyBitGeneratorMethods as _};
+//! # use numpy::random::{PyBitGenerator, PyBitGeneratorMethods as _};
30
//! # // TODO: reuse function definition from above?
31
//! # fn default_bit_gen<'py>(py: Python<'py>) -> PyResult<Bound<'py, PyBitGenerator>> {
32
//! # let default_rng = py.import("numpy.random")?.call_method0("default_rng")?;
0 commit comments