In the while loop iterator section, advise while loops, not for loops

- Fixes #2504.
This commit is contained in:
Isabell Long
2015-08-22 20:26:36 +01:00
parent e4908513e9
commit 1206655940

View File

@ -843,7 +843,7 @@
"<code>&thinsp;&thinsp;ourArray.push(i);</code>", "<code>&thinsp;&thinsp;ourArray.push(i);</code>",
"<code>&thinsp;&thinsp;i++;</code>", "<code>&thinsp;&thinsp;i++;</code>",
"<code>}</code>", "<code>}</code>",
"Let's try getting a for loop to work by pushing values to an array." "Let's try getting a while loop to work by pushing values to an array."
], ],
"tests":[ "tests":[
"assert(editor.getValue().match(/while/g), 'You should be using a while loop for this.');", "assert(editor.getValue().match(/while/g), 'You should be using a while loop for this.');",