diff --git a/napi-derive/README.md b/napi-derive/README.md index 6e663dfd..63ae9338 100644 --- a/napi-derive/README.md +++ b/napi-derive/README.md @@ -4,9 +4,9 @@ ```rust #[macro_use] -extern crate napi_rs as napi; +extern crate napi; #[macro_use] -extern crate napi_rs_derive; +extern crate napi_derive; use napi::{CallContext, Error, JsNumber, JsUnknown, Module, Result, Status}; use std::convert::TryInto; diff --git a/napi/src/threadsafe_function.rs b/napi/src/threadsafe_function.rs index 4a84dae4..2083eee2 100644 --- a/napi/src/threadsafe_function.rs +++ b/napi/src/threadsafe_function.rs @@ -20,10 +20,10 @@ pub trait ToJs: Copy + Clone { /// /// ``` /// #[macro_use] -/// extern crate napi_rs_derive; +/// extern crate napi_derive; /// /// use std::thread; -/// use napi_rs::{ +/// use napi::{ /// Number, Result, Env, CallContext, JsUndefined, JsFunction, /// sys::{ /// napi_threadsafe_function_call_mode::{ @@ -34,7 +34,7 @@ pub trait ToJs: Copy + Clone { /// } /// } /// }; -/// use napi_rs::threadsafe_function::{ +/// use napi::threadsafe_function::{ /// ToJs, ThreadsafeFunction, /// }; ///