Skip to content

Commit b338d53

Browse files
gengjiawentargos
authored andcommitted
src: fix typos
PR-URL: #27580 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c78de13 commit b338d53

5 files changed

+5
-5
lines changed

src/async_wrap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class AsyncWrap : public BaseObject {
111111
ProviderType provider,
112112
double execution_async_id = kInvalidAsyncId);
113113

114-
// This constructor creates a reuseable instance where user is responsible
114+
// This constructor creates a reusable instance where user is responsible
115115
// to call set_provider_type() and AsyncReset() before use.
116116
AsyncWrap(Environment* env, v8::Local<v8::Object> object);
117117

src/env.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ class Environment : public MemoryRetainer {
885885

886886
inline IsolateData* isolate_data() const;
887887

888-
// Utilites that allocate memory using the Isolate's ArrayBuffer::Allocator.
888+
// Utilities that allocate memory using the Isolate's ArrayBuffer::Allocator.
889889
// In particular, using AllocateManaged() will provide a RAII-style object
890890
// with easy conversion to `Buffer` and `ArrayBuffer` objects.
891891
inline AllocatedBuffer AllocateManaged(size_t size, bool checked = true);

src/node.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ MaybeLocal<Value> RunBootstrapping(Environment* env) {
330330
return MaybeLocal<Value>();
331331

332332
// Make sure that no request or handle is created during bootstrap -
333-
// if necessary those should be done in pre-exeuction.
333+
// if necessary those should be done in pre-execution.
334334
// TODO(joyeecheung): print handles/requests before aborting
335335
CHECK(env->req_wrap_queue()->IsEmpty());
336336
CHECK(env->handle_wrap_queue()->IsEmpty());

src/node_main_instance.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace node {
1515
// We may be able to create an abstract class to reuse some of the routines.
1616
class NodeMainInstance {
1717
public:
18-
// To create a main instance that does not own the isoalte,
18+
// To create a main instance that does not own the isolate,
1919
// The caller needs to do:
2020
//
2121
// Isolate* isolate = Isolate::Allocate();

src/node_native_module_env.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ MaybeLocal<Function> NativeModuleEnv::LookupAndCompile(
152152
}
153153

154154
// TODO(joyeecheung): It is somewhat confusing that Class::Initialize
155-
// is used to initilaize to the binding, but it is the current convention.
155+
// is used to initialize to the binding, but it is the current convention.
156156
// Rename this across the code base to something that makes more sense.
157157
void NativeModuleEnv::Initialize(Local<Object> target,
158158
Local<Value> unused,

0 commit comments

Comments
 (0)