diff --git a/docs/lib-in_shape.md b/docs/lib-in_shape.md index eafee1d5..24e68624 100644 --- a/docs/lib-in_shape.md +++ b/docs/lib-in_shape.md @@ -25,7 +25,7 @@ Checks wether a point is inside a shape. ys = rands(-16, 16, n); pts = [ - for(i = [0:n]) + for(i = [0:n - 1]) let(p = [xs[i], ys[i]]) if(in_shape(points, p, true)) p