Fix ps documentation

This commit is contained in:
Sage Pointer 2022-01-29 22:20:27 +02:00 committed by GitHub
parent 9ddb1c4379
commit ac054b0065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5017,8 +5017,8 @@ export interface NS extends Singularity {
* @example * @example
* ```ts * ```ts
* // NS1: * // NS1:
* const scripts = ps("home"); * var scripts = ps("home");
* for (let i = 0; i < scripts.length; ++i) { * for (var i = 0; i < scripts.length; ++i) {
* tprint(scripts[i].filename + ' ' + scripts[i].threads); * tprint(scripts[i].filename + ' ' + scripts[i].threads);
* tprint(scripts[i].args); * tprint(scripts[i].args);
* } * }
@ -5027,8 +5027,8 @@ export interface NS extends Singularity {
* ```ts * ```ts
* // NS2: * // NS2:
* const ps = ns.ps("home"); * const ps = ns.ps("home");
* for (script of ps) { * for (let script of ps) {
* ns.tprint(`${script.filename} ${ps[i].threads}`); * ns.tprint(`${script.filename} ${script.threads}`);
* ns.tprint(script.args); * ns.tprint(script.args);
* } * }
* ``` * ```