mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 02:03:58 +01:00
Fix ps documentation
This commit is contained in:
parent
9ddb1c4379
commit
ac054b0065
8
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
8
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -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);
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
Loading…
Reference in New Issue
Block a user