From 0f6e90a5fd7a19382e3d3028bfcc36eb57135515 Mon Sep 17 00:00:00 2001 From: nsf Date: Sat, 17 Aug 2013 19:16:37 +0600 Subject: [PATCH] Fix typo in test/bench/noise.rs. Closes #8574. --- src/test/bench/noise.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/bench/noise.rs b/src/test/bench/noise.rs index e5fac51249908..6565fc36dd289 100644 --- a/src/test/bench/noise.rs +++ b/src/test/bench/noise.rs @@ -25,7 +25,7 @@ fn random_gradient(r: &mut R) -> Vec2 { fn gradient(orig: Vec2, grad: Vec2, p: Vec2) -> f32 { let sp = Vec2 {x: p.x - orig.x, y: p.y - orig.y}; - grad.x * sp.x + grad.y + sp.y + grad.x * sp.x + grad.y * sp.y } struct Noise2DContext {