DOCUMENTATION: Fix wrong examples in NetscriptDefinitions.d.ts (#1295)

This commit is contained in:
catloversg
2024-05-23 15:42:47 +07:00
committed by GitHub
parent 81a707123e
commit 30c04f8152
11 changed files with 26 additions and 26 deletions

View File

@@ -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)}`);
```