diff --git a/docs/hello-world.md b/docs/hello-world.md index 9eb3fae1..419f3b6a 100644 --- a/docs/hello-world.md +++ b/docs/hello-world.md @@ -100,8 +100,8 @@ fn thread_count(mut cx: FunctionContext) -> JsResult { A few more things to note about this code: - The `cx` argument to `thread_count`: this contains information about the function call, such as the arguments and the value of `this`. -- The [`JsResult`](https://docs.rs/neon/*/neon/result/type.JsResult.html) output type: this is a Rust [`Result`](https://doc.rust-lang.org/std/result/enum.Result.html) type that indicates whether the function returned (`Ok`) or threw a JavaScript exception (`Err`). You can learn more in the [Handling Errors](../handling-errors) guide. It also tracks the lifetime of the returned _handle_. You can read more about handles in the [Handles and Memory](../handles-and-memory/) guide. -- The `cx.number()` function tells the JavaScript garbage collector that we need to keep the value we allocate alive long enough to return it to the caller of `thread_count`. You can learn more about memory management in the [Handles and Memory](../handles-and-memory/) guide. +- The [`JsResult`](https://docs.rs/neon/*/neon/result/type.JsResult.html) output type: this is a Rust [`Result`](https://doc.rust-lang.org/std/result/enum.Result.html) type that indicates whether the function returned (`Ok`) or threw a JavaScript exception (`Err`). You can learn more in the [Handling Errors](https://github.com/neon-bindings/website/issues/125) guide. It also tracks the lifetime of the returned _handle_. You can read more about handles in the [Handles and Memory](https://github.com/neon-bindings/website/issues/78) guide. +- The `cx.number()` function tells the JavaScript garbage collector that we need to keep the value we allocate alive long enough to return it to the caller of `thread_count`. You can learn more about memory management in the [Handles and Memory](https://github.com/neon-bindings/website/issues/78) guide. Finally, we'll modify the code that `neon new` created for us to set up the module exports with this function instead of the initial "hello world" function it created for us: