From ba5963a4f04137eb366428f4a28d3f42c9ae9745 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 23 Sep 2017 13:43:02 -0700 Subject: [PATCH] Fix colors example --- examples/colors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/colors.rs b/examples/colors.rs index 8b2e834..8d7f6f6 100644 --- a/examples/colors.rs +++ b/examples/colors.rs @@ -28,7 +28,7 @@ fn back_color(x: u8, y: u8, x_max: u8, y_max: u8) -> Color { 255 - x * (255 / x_max)) } -fn draw(p: &Printer, _: &()) { +fn draw(_: &(), p: &Printer) { let x_max = p.size.x as u8; let y_max = p.size.y as u8;