Skip to content

Commit b81feb7

Browse files
author
ferris
committed
Removed unnecessary parens in example code
Fixes #22
1 parent 7c2f5e6 commit b81feb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/sine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() {
3030
// Construct an Output audio unit.
3131
let mut audio_unit = AudioUnit::new(Type::Output, SubType::HalOutput).unwrap();
3232
audio_unit.render_callback(Some(Box::new(move |buffer, num_frames| {
33-
for frame in (0..num_frames) {
33+
for frame in 0..num_frames {
3434
let sample = samples.next().unwrap();
3535
for channel in buffer.iter_mut() {
3636
channel[frame] = sample;

0 commit comments

Comments
 (0)