Skip to content

Commit

Permalink
add missing move`
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jun 11, 2024
1 parent be7853c commit 5482b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/hooks/src/use_canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl UseCanvas {
/// fn app() -> Element {
/// let value = use_signal(|| 0);
///
/// let canvas = use_canvas(|| {
/// let canvas = use_canvas(move || {
/// let curr = value();
/// Box::new(move |canvas, font_collection, area, scale_factor| {
/// // Draw using the canvas !
Expand Down

0 comments on commit 5482b05

Please sign in to comment.