From 5002e782a49d1cffabf98d416cb3666a62897563 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sun, 6 Feb 2022 16:39:11 +0800 Subject: [PATCH] docs(napi): typo --- crates/napi/src/bindgen_runtime/module_register.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/napi/src/bindgen_runtime/module_register.rs b/crates/napi/src/bindgen_runtime/module_register.rs index 76e7ca47..e33384c5 100644 --- a/crates/napi/src/bindgen_runtime/module_register.rs +++ b/crates/napi/src/bindgen_runtime/module_register.rs @@ -206,7 +206,7 @@ pub fn get_js_function(raw_fn: ExportRegisterCallback) -> Result { .ok_or_else(|| { crate::Error::new( crate::Status::InvalidArg, - "JavaScript function does not exists".to_owned(), + "JavaScript function does not exist".to_owned(), ) }) } @@ -238,7 +238,7 @@ pub fn get_c_callback(raw_fn: ExportRegisterCallback) -> Result .ok_or_else(|| { crate::Error::new( crate::Status::InvalidArg, - "JavaScript function does not exists".to_owned(), + "JavaScript function does not exist".to_owned(), ) }) }