Skip to content

Commit

Permalink
fix compilation errors in example readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gerwin3 authored Jul 4, 2024
1 parent 6086137 commit adec88f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ fn main() {
let frame = rainbow_frame(i as f32 / 256.0);

encoder
.encode(&frame, &position)
.encode(&frame, position)
.expect("failed to encode frame");

// Update the current position and add the inter-frame duration to it.
position = position.aligned_with(&duration).add();
position = position.aligned_with(duration).add();
}

encoder.finish().expect("failed to finish encoder");
Expand Down

0 comments on commit adec88f

Please sign in to comment.