minor tweak to doc

This commit is contained in:
Olivier Gagnon 2021-12-16 12:13:00 -05:00
parent 2da9f87031
commit 16431f1031

@ -3730,9 +3730,9 @@ interface Stanek {
* <b>Basic ns1 usage example:</b> * <b>Basic ns1 usage example:</b>
* ```ts * ```ts
* // Basic ns functions can be used directly * // Basic ns functions can be used directly
* methodName(); * getHostname();
* // Some related functions are gathered within a common namespace * // Some related functions are gathered within a common namespace
* property.methodName(); * stock.getPrice();
* ``` * ```
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html| ns1 in-game docs} * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html| ns1 in-game docs}
* <hr> * <hr>
@ -3740,9 +3740,9 @@ interface Stanek {
* ```ts * ```ts
* export async function main(ns) { * export async function main(ns) {
* // Basic ns functions can be accessed on the ns object * // Basic ns functions can be accessed on the ns object
* await ns.methodName; * await ns.getHostname();
* // Some related functions are gathered under a sub-property of the ns object * // Some related functions are gathered under a sub-property of the ns object
* await ns.property.methodName; * await ns.stock.getPrice();
* } * }
* ``` * ```
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs} * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}