From 91d39de4a6554be5ea1baf5dda6b6e7561b75f87 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 8 Jun 2019 08:34:38 +0800 Subject: [PATCH] update doc --- docs/lib-in_shape.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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