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 b75cfb5 commit ed77f12Copy full SHA for ed77f12
rand_core/src/lib.rs
@@ -297,17 +297,13 @@ pub trait SeedableRng: Sized {
297
/// ```
298
/// use rand_core::SeedableRng;
299
///
300
- /// pub struct MyRngSeed(pub [u8; 64]);
+ /// const N: usize = 64;
301
+ /// pub struct MyRngSeed(pub [u8; N]);
302
/// pub struct MyRng(MyRngSeed);
303
304
/// impl Default for MyRngSeed {
305
/// fn default() -> MyRngSeed {
- /// MyRngSeed([
306
- /// 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
307
308
309
310
- /// ])
+ /// MyRngSeed([0; N])
311
/// }
312
313
0 commit comments