From 1d0d4f8da6a70820db19d2930e74a53a50352d5a Mon Sep 17 00:00:00 2001 From: Snarling <84951833+Snarling@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:25:54 -0400 Subject: [PATCH] fix grow doc (#136) --- src/ScriptEditor/NetscriptDefinitions.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index e2a4baf85..99a7d9a36 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -4663,13 +4663,13 @@ export interface NS { * ```ts * // NS1: * var currentMoney = getServerMoneyAvailable("foodnstuff"); - * currentMoney = currentMoney * (1 + grow("foodnstuff")); + * currentMoney = currentMoney * grow("foodnstuff"); * ``` * @example * ```ts * // NS2: * let currentMoney = ns.getServerMoneyAvailable("foodnstuff"); - * currentMoney *= (1 + await ns.grow("foodnstuff")); + * currentMoney *= await ns.grow("foodnstuff"); * ``` * @param host - Hostname of the target server to grow. * @param opts - Optional parameters for configuring function behavior.