fix grow doc (#136)

This commit is contained in:
Snarling 2022-10-19 17:25:54 -04:00 committed by GitHub
parent 3af6e7db45
commit 1d0d4f8da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4663,13 +4663,13 @@ export interface NS {
* ```ts * ```ts
* // NS1: * // NS1:
* var currentMoney = getServerMoneyAvailable("foodnstuff"); * var currentMoney = getServerMoneyAvailable("foodnstuff");
* currentMoney = currentMoney * (1 + grow("foodnstuff")); * currentMoney = currentMoney * grow("foodnstuff");
* ``` * ```
* @example * @example
* ```ts * ```ts
* // NS2: * // NS2:
* let currentMoney = ns.getServerMoneyAvailable("foodnstuff"); * 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 host - Hostname of the target server to grow.
* @param opts - Optional parameters for configuring function behavior. * @param opts - Optional parameters for configuring function behavior.