mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
DOCUMENTATION: Fix wrong examples in NetscriptDefinitions.d.ts (#1295)
This commit is contained in:
@@ -37,7 +37,7 @@ If the program does not exist, an error is thrown.
|
||||
|
||||
```js
|
||||
const programName = "BruteSSH.exe";
|
||||
const cost = ns.getDarkwebProgramCost(programName);
|
||||
if (cost > 0) ns.tprint(`${programName} costs ${ns.formatMoney(cost)}`);
|
||||
const cost = ns.singularity.getDarkwebProgramCost(programName);
|
||||
if (cost > 0) ns.tprint(`${programName} costs $${ns.formatNumber(cost)}`);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user