Fix typo in test/bench/noise.rs. Closes #8574.

This commit is contained in:
nsf 2013-08-17 19:16:37 +06:00 committed by Daniel Micay
parent 934a5eba50
commit 0f6e90a5fd

View File

@ -25,7 +25,7 @@ fn random_gradient<R:Rng>(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 {