From 0a4c64a8fa4f6cc87d1f85dc8615d52d1dce2a74 Mon Sep 17 00:00:00 2001 From: MageKing17 Date: Sat, 20 Aug 2022 18:47:37 -0700 Subject: [PATCH] Correct documentation for `run()` with 0 threads. For consistency, the same phrasing has been applied to the documentation for `exec()` and `spawn()`. --- src/ScriptEditor/NetscriptDefinitions.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 090267b1e..4c199c56e 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -5178,8 +5178,7 @@ export interface NS { * PID stands for Process ID. The PID is a unique identifier for each script. * The PID will always be a positive integer. * - * Running this function with a numThreads argument of 0 will return 0 without running the script. - * However, running this function with 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 * ```ts @@ -5226,7 +5225,7 @@ export interface NS { * PID stands for Process ID. The PID is a unique identifier for each script. * 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 * ```ts @@ -5272,6 +5271,8 @@ export interface NS { * * 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 * ```ts * // NS1: