Merge pull request #2869 from SagePtr/patch-1

Fix ps documentation
This commit is contained in:
hydroflame 2022-03-01 10:47:58 -05:00 committed by GitHub
commit 213b03523b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5112,8 +5112,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);
* } * }
@ -5122,8 +5122,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);
* } * }
* ``` * ```