Skip to content

Commit

Permalink
FIX: Minor documentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
NagaOuroboros committed Mar 8, 2025
1 parent 52e7d11 commit a754169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion markdown/bitburner.ns.scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ for (let i = 0; i < neighbor.length; i++) {
}
// All servers that are one hop from the current server, but by IP address.
ns.tprint("IPs of current server's neighbors.");
let neighbor = ns.scan(null, { returnByIP: true });
let neighbor = ns.scan(undefined, { returnByIP: true });
for (let i = 0; i < neighbor.length; i++) {
ns.tprint(neighbor[i]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ScriptEditor/NetscriptDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6774,7 +6774,7 @@ export interface NS {
* }
* // All servers that are one hop from the current server, but by IP address.
* ns.tprint("IPs of current server's neighbors.");
* let neighbor = ns.scan(null, { returnByIP: true });
* let neighbor = ns.scan(undefined, { returnByIP: true });
* for (let i = 0; i < neighbor.length; i++) {
* ns.tprint(neighbor[i]);
* }
Expand Down

0 comments on commit a754169

Please sign in to comment.