diff --git a/crates/napi/src/bindgen_runtime/js_values/bigint.rs b/crates/napi/src/bindgen_runtime/js_values/bigint.rs index c8e42076..5252e0b9 100644 --- a/crates/napi/src/bindgen_runtime/js_values/bigint.rs +++ b/crates/napi/src/bindgen_runtime/js_values/bigint.rs @@ -19,8 +19,8 @@ use super::{FromNapiValue, ToNapiValue, TypeName}; #[allow(non_camel_case_types)] pub struct i64n(pub i64); -/// https://nodejs.org/api/n-api.html#napi_create_bigint_words -/// The resulting BigInt is calculated as: (–1)^sign_bit (words[0] × (2^64)^0 + words[1] × (2^64)^1 + …) +/// +/// The resulting BigInt is calculated as: (–1)^sign_bit (words\[0\] × (2^64)^0 + words\[1\] × (2^64)^1 + …) pub struct BigInt { /// true for negative numbers pub sign_bit: bool, diff --git a/crates/napi/src/bindgen_runtime/js_values/task.rs b/crates/napi/src/bindgen_runtime/js_values/task.rs index a98942e9..f1039ac6 100644 --- a/crates/napi/src/bindgen_runtime/js_values/task.rs +++ b/crates/napi/src/bindgen_runtime/js_values/task.rs @@ -44,7 +44,7 @@ impl AsyncTask { } } -/// https://developer.mozilla.org/zh-CN/docs/Web/API/AbortController +/// pub struct AbortSignal { raw_work: Rc>, raw_deferred: Rc>, diff --git a/crates/napi/src/js_values/arraybuffer.rs b/crates/napi/src/js_values/arraybuffer.rs index 71fa7c98..3fe70a1f 100644 --- a/crates/napi/src/js_values/arraybuffer.rs +++ b/crates/napi/src/js_values/arraybuffer.rs @@ -229,7 +229,7 @@ impl DerefMut for JsArrayBufferValue { impl JsTypedArray { /// get TypeArray info - /// https://nodejs.org/api/n-api.html#n_api_napi_get_typedarray_info + /// /// /// ***Warning***: Use caution while using this API since the underlying data buffer is managed by the VM. pub fn into_value(self) -> Result { diff --git a/crates/napi/src/js_values/bigint.rs b/crates/napi/src/js_values/bigint.rs index 8eeef285..a22d2c66 100644 --- a/crates/napi/src/js_values/bigint.rs +++ b/crates/napi/src/js_values/bigint.rs @@ -196,7 +196,7 @@ impl TryFrom for u64 { } impl JsBigInt { - /// https://nodejs.org/api/n-api.html#n_api_napi_get_value_bigint_words + /// pub fn get_words(&mut self) -> Result<(bool, Vec)> { let mut words: Vec = Vec::with_capacity(self.word_count as usize); let word_count = &mut self.word_count; diff --git a/crates/napi/src/js_values/function.rs b/crates/napi/src/js_values/function.rs index e0ba67d8..12c4f4b9 100644 --- a/crates/napi/src/js_values/function.rs +++ b/crates/napi/src/js_values/function.rs @@ -94,7 +94,7 @@ impl JsFunction { unsafe { JsUnknown::from_raw(self.0.env, return_value) } } - /// https://nodejs.org/api/n-api.html#n_api_napi_new_instance + /// /// /// This method is used to instantiate a new `JavaScript` value using a given `JsFunction` that represents the constructor for the object. pub fn new_instance(&self, args: &[V]) -> Result diff --git a/crates/napi/src/js_values/mod.rs b/crates/napi/src/js_values/mod.rs index 9ff4a19d..d342b3af 100644 --- a/crates/napi/src/js_values/mod.rs +++ b/crates/napi/src/js_values/mod.rs @@ -437,7 +437,7 @@ macro_rules! impl_object_methods { Ok(unsafe { JsObject::from_raw_unchecked(self.0.env, raw_value) }) } - /// https://nodejs.org/api/n-api.html#n_api_napi_get_all_property_names + /// /// return `Array` of property names #[cfg(feature = "napi6")] pub fn get_all_property_names(