From 996800a74f7b98ec7ae69142175407b85405f74c Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Tue, 15 Aug 2023 04:16:44 +0200 Subject: [PATCH] grrrr (#21971) --- .github/CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index f3a8cee18dd..b270c318980 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -619,7 +619,7 @@ Like all languages, Dream Maker has its quirks, some of them are beneficial to u HOWEVER, if either `some_value` or `i` changes within the body of the for (underneath the `for(...)` header) or if you are looping over a list AND changing the length of the list then you can NOT use this type of for-loop! -### `for(var/A in list)` VS `for(var/i in 1 to list.len)` +### `for(var/A in list)` VS `for(var/i in 1 to length(list))` The former is faster than the latter, as shown by the following profile results: [https://file.house/zy7H.png](https://file.house/zy7H.png)