From c5bf58a3eb7a13c8c3f1dfe94c462dcd6f1d370a Mon Sep 17 00:00:00 2001 From: Meowdoleon Date: Wed, 19 Jan 2022 13:58:15 -0500 Subject: [PATCH] Declaring the script variable in the NS2 example Small change to declares the script variable in the NS2 example. --- markdown/bitburner.ns.ps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/bitburner.ns.ps.md b/markdown/bitburner.ns.ps.md index af92330e3..6ef602e19 100644 --- a/markdown/bitburner.ns.ps.md +++ b/markdown/bitburner.ns.ps.md @@ -48,7 +48,7 @@ for (let i = 0; i < scripts.length; ++i) { ```ts // NS2: const ps = ns.ps("home"); -for (script of ps) { +for (let script of ps) { ns.tprint(`${script.filename} ${ps[i].threads}`); ns.tprint(script.args); }