docs(napi): typo

This commit is contained in:
LongYinan 2022-02-06 16:39:11 +08:00
parent 2cd105cfc6
commit 5002e782a4
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -206,7 +206,7 @@ pub fn get_js_function(raw_fn: ExportRegisterCallback) -> Result<JsFunction> {
.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<crate::Callback>
.ok_or_else(|| {
crate::Error::new(
crate::Status::InvalidArg,
"JavaScript function does not exists".to_owned(),
"JavaScript function does not exist".to_owned(),
)
})
}