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
* ```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);
* }
* ```