From ac054b0065b2ebe9e8c406e1f8bf1d5cd905eb36 Mon Sep 17 00:00:00 2001 From: Sage Pointer Date: Sat, 29 Jan 2022 22:20:27 +0200 Subject: [PATCH] Fix ps documentation --- src/ScriptEditor/NetscriptDefinitions.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 6e613ba80..e864464b6 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5017,8 +5017,8 @@ export interface NS extends Singularity { * @example * ```ts * // NS1: - * const scripts = ps("home"); - * for (let i = 0; i < scripts.length; ++i) { + * var scripts = ps("home"); + * for (var i = 0; i < scripts.length; ++i) { * tprint(scripts[i].filename + ' ' + scripts[i].threads); * tprint(scripts[i].args); * } @@ -5027,8 +5027,8 @@ export interface NS extends Singularity { * ```ts * // NS2: * const ps = ns.ps("home"); - * for (script of ps) { - * ns.tprint(`${script.filename} ${ps[i].threads}`); + * for (let script of ps) { + * ns.tprint(`${script.filename} ${script.threads}`); * ns.tprint(script.args); * } * ```