From 147048a0d3e255d2a0604f3ab7c8f62252cb8252 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Sun, 7 May 2017 19:46:11 -0400 Subject: [PATCH] doc: fix broken links in n-api doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix 2 broken links - fix capitalization in description of napi_create_array-with-length PR-URL: https://github.com/nodejs/node/pull/12889 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Refael Ackermann Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Daniel Bevenius Reviewed-By: MichaƫZasso Reviewed-By: Gibson Fahnestock Reviewed-By: Hitesh Kanwathirtha --- doc/api/n-api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/n-api.md b/doc/api/n-api.md index bc0499e4d09447..7530c0b1b4f4d2 100644 --- a/doc/api/n-api.md +++ b/doc/api/n-api.md @@ -952,7 +952,7 @@ The Array's length property is set to the passed-in length parameter. However, the underlying buffer is not guaranteed to be pre-allocated by the VM when the array is created - that behavior is left to the underlying VM implementation. -if the buffer must be a contiguous block of memory that can be +If the buffer must be a contiguous block of memory that can be directly read and/or written via C, consider using [`napi_create_external_arraybuffer`][]. @@ -2958,13 +2958,13 @@ callback invocation, even when it was cancelled. [`napi_close_handle_scope`]: #n_api_napi_close_handle_scope [`napi_create_async_work`]: #n_api_napi_create_async_work [`napi_create_error`]: #n_api_napi_create_error -[`napi_create_external_arraybuffer`][]: #n_api_napi_create_external_arraybuffer +[`napi_create_external_arraybuffer`]: #n_api_napi_create_external_arraybuffer [`napi_create_range_error`]: #n_api_napi_create_range_error [`napi_create_reference`]: #n_api_napi_create_reference [`napi_create_type_error`]: #n_api_napi_create_type_error [`napi_define_class`]: #n_api_napi_define_class [`napi_delete_async_work`]: #n_api_napi_delete_async_work -[`napi_define_class`][]: #n_api_napi_define_class +[`napi_define_class`]: #n_api_napi_define_class [`napi_delete_reference`]: #n_api_napi_delete_reference [`napi_escape_handle`]: #n_api_napi_escape_handle [`napi_get_array_length`]: #n_api_napi_get_array_length