Skip to content

Commit 0f6e90a

Browse files
nsfthestinger
authored andcommitted
Fix typo in test/bench/noise.rs. Closes #8574.
1 parent 934a5eb commit 0f6e90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/bench/noise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn random_gradient<R:Rng>(r: &mut R) -> Vec2 {
2525

2626
fn gradient(orig: Vec2, grad: Vec2, p: Vec2) -> f32 {
2727
let sp = Vec2 {x: p.x - orig.x, y: p.y - orig.y};
28-
grad.x * sp.x + grad.y + sp.y
28+
grad.x * sp.x + grad.y * sp.y
2929
}
3030

3131
struct Noise2DContext {

0 commit comments

Comments
 (0)