We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 170586e commit 02464abCopy full SHA for 02464ab
Cargo.toml
@@ -30,7 +30,7 @@ version = ">= 1.0"
30
optional = true
31
32
[dev-dependencies]
33
-rand = "0.7"
+rand = "0.8"
34
wgpu = { version = "0.20", features = ["spirv"] }
35
pollster = "0.2.4"
36
env_logger = "0.11.0"
examples/audio-whitenoise.rs
@@ -16,7 +16,7 @@ impl AudioCallback for MyCallback {
16
17
// Generate white noise
18
for x in out.iter_mut() {
19
- *x = (rng.gen_range(0.0, 2.0) - 1.0) * self.volume;
+ *x = (rng.gen_range(0.0..2.0) - 1.0) * self.volume;
20
}
21
22
0 commit comments