From a49f68b0de83ca277479432d8fed4e85f3ad071b Mon Sep 17 00:00:00 2001 From: chris380 Date: Tue, 12 Apr 2022 16:23:05 +0200 Subject: [PATCH] Fixed hashCost() example code --- dist/bitburner.d.ts | 4 ++-- src/ScriptEditor/NetscriptDefinitions.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/bitburner.d.ts b/dist/bitburner.d.ts index ec8f84056..791595934 100644 --- a/dist/bitburner.d.ts +++ b/dist/bitburner.d.ts @@ -2101,7 +2101,7 @@ export declare interface Hacknet { * // NS1: * var upgradeName = "Sell for Corporation Funds"; * if (hacknet.numHashes() > hacknet.hashCost(upgradeName)) { - * hacknet.spendHashes(upgName); + * hacknet.spendHashes(upgradeName); * } * ``` * @example @@ -2109,7 +2109,7 @@ export declare interface Hacknet { * // NS2: * const upgradeName = "Sell for Corporation Funds"; * if (ns.hacknet.numHashes() > ns.hacknet.hashCost(upgradeName)) { - * ns.hacknet.spendHashes(upgName); + * ns.hacknet.spendHashes(upgradeName); * } * ``` * @param upgName - Name of the upgrade of Hacknet Node. diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 18da4e065..d0647edcd 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -2618,7 +2618,7 @@ export interface Hacknet { * // NS1: * var upgradeName = "Sell for Corporation Funds"; * if (hacknet.numHashes() > hacknet.hashCost(upgradeName)) { - * hacknet.spendHashes(upgName); + * hacknet.spendHashes(upgradeName); * } * ``` * @example @@ -2626,7 +2626,7 @@ export interface Hacknet { * // NS2: * const upgradeName = "Sell for Corporation Funds"; * if (ns.hacknet.numHashes() > ns.hacknet.hashCost(upgradeName)) { - * ns.hacknet.spendHashes(upgName); + * ns.hacknet.spendHashes(upgradeName); * } * ``` * @param upgName - Name of the upgrade of Hacknet Node.