mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 06:02:26 +01:00
Correct documentation for run()
with 0 threads.
For consistency, the same phrasing has been applied to the documentation for `exec()` and `spawn()`.
This commit is contained in:
parent
9c579e294a
commit
0a4c64a8fa
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
7
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -5178,8 +5178,7 @@ export interface NS {
|
|||||||
* PID stands for Process ID. The PID is a unique identifier for each script.
|
* PID stands for Process ID. The PID is a unique identifier for each script.
|
||||||
* The PID will always be a positive integer.
|
* The PID will always be a positive integer.
|
||||||
*
|
*
|
||||||
* Running this function with a numThreads argument of 0 will return 0 without running the script.
|
* Running this function with a numThreads argument of 0 or less will cause a runtime error.
|
||||||
* However, running this function with a negative numThreads argument will cause a runtime error.
|
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
@ -5226,7 +5225,7 @@ export interface NS {
|
|||||||
* PID stands for Process ID. The PID is a unique identifier for each script.
|
* PID stands for Process ID. The PID is a unique identifier for each script.
|
||||||
* The PID will always be a positive integer.
|
* The PID will always be a positive integer.
|
||||||
*
|
*
|
||||||
* Running this function with 0 or a negative numThreads argument will cause a runtime error.
|
* Running this function with a numThreads argument of 0 or less will cause a runtime error.
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
@ -5272,6 +5271,8 @@ export interface NS {
|
|||||||
*
|
*
|
||||||
* Because this function immediately terminates the script, it does not have a return value.
|
* Because this function immediately terminates the script, it does not have a return value.
|
||||||
*
|
*
|
||||||
|
* Running this function with a numThreads argument of 0 or less will cause a runtime error.
|
||||||
|
*
|
||||||
* @example
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
* // NS1:
|
* // NS1:
|
||||||
|
Loading…
Reference in New Issue
Block a user