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
* // 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.