Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f25cd4f

Browse filesBrowse files
bl-uedanielleadams
authored andcommitted
src: fix typos
PR-URL: #38845 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
1 parent 108ffdb commit f25cd4f
Copy full SHA for f25cd4f

File tree

Expand file treeCollapse file tree

11 files changed

+15
-15
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

11 files changed

+15
-15
lines changed
Open diff view settings
Collapse file

‎src/base_object.h‎

Copy file name to clipboardExpand all lines: src/base_object.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class BaseObject : public MemoryRetainer {
191191
// Indicates whether MakeWeak() has been called.
192192
bool wants_weak_jsobj = false;
193193
// Indicates whether Detach() has been called. If that is the case, this
194-
// object will be destryoed once the strong pointer count drops to zero.
194+
// object will be destroyed once the strong pointer count drops to zero.
195195
bool is_detached = false;
196196
// Reference to the original BaseObject. This is used by weak pointers.
197197
BaseObject* self = nullptr;
Collapse file

‎src/cares_wrap.cc‎

Copy file name to clipboardExpand all lines: src/cares_wrap.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ void SetLocalAddress(const FunctionCallbackInfo<Value>& args) {
18091809
return;
18101810
}
18111811
} else {
1812-
// No second arg specifed
1812+
// No second arg specified
18131813
if (type0 == 4) {
18141814
memset(&addr1, 0, sizeof(addr1));
18151815
ares_set_local_ip6(channel->cares_channel(), addr1);
Collapse file

‎src/debug_utils.cc‎

Copy file name to clipboardExpand all lines: src/debug_utils.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void PrintLibuvHandleInformation(uv_loop_t* loop, FILE* stream) {
355355
void* first_field = nullptr;
356356
// `handle->data` might be any value, including `nullptr`, or something
357357
// cast from a completely different type; therefore, check that it’s
358-
// dereferencable first.
358+
// dereferenceable first.
359359
if (sym_ctx->IsMapped(handle->data))
360360
first_field = *reinterpret_cast<void**>(handle->data);
361361

Collapse file

‎src/env.h‎

Copy file name to clipboardExpand all lines: src/env.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ class CleanupHookCallback {
908908

909909
struct PropInfo {
910910
std::string name; // name for debugging
911-
size_t id; // In the list - in case there are any empty entires
911+
size_t id; // In the list - in case there are any empty entries
912912
SnapshotIndex index; // In the snapshot
913913
};
914914

Collapse file

‎src/js_native_api_v8.cc‎

Copy file name to clipboardExpand all lines: src/js_native_api_v8.cc
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class RefBase : protected Finalizer, RefTracker {
248248
delete reference;
249249
} else {
250250
// defer until finalizer runs as
251-
// it may alread be queued
251+
// it may already be queued
252252
reference->_delete_self = true;
253253
}
254254
}
@@ -416,7 +416,7 @@ class Reference : public RefBase {
416416
inline void SetWeak() {
417417
if (_secondPassParameter == nullptr) {
418418
// This means that the Reference has already been processed
419-
// by the second pass calback, so its already been Finalized, do
419+
// by the second pass callback, so its already been Finalized, do
420420
// nothing
421421
return;
422422
}
@@ -455,9 +455,9 @@ class Reference : public RefBase {
455455
// second pass callback task. We have to make sure that parameter is kept
456456
// alive until the second pass callback is been invoked. In order to do
457457
// this and still allow our code to Finalize/delete the Reference during
458-
// shutdown we have to use a seperately allocated parameter instead
458+
// shutdown we have to use a separately allocated parameter instead
459459
// of a parameter within the Reference object itself. This is what
460-
// is stored in _secondPassParameter and it is alocated in the
460+
// is stored in _secondPassParameter and it is allocated in the
461461
// constructor for the Reference.
462462
static void SecondPassCallback(
463463
const v8::WeakCallbackInfo<SecondPassCallParameterRef>& data) {
Collapse file

‎src/node.cc‎

Copy file name to clipboardExpand all lines: src/node.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) {
10331033
// command. If the path to this file is incorrect no error will be reported.
10341034
//
10351035
// For Node.js this will mean that EntropySource will be called by V8 as part
1036-
// of its initalization process, and EntropySource will in turn call
1036+
// of its initialization process, and EntropySource will in turn call
10371037
// CheckEntropy. CheckEntropy will call RAND_status which will now always
10381038
// return 0, leading to an endless loop and the node process will appear to
10391039
// hang/freeze.
Collapse file

‎src/node_http2.cc‎

Copy file name to clipboardExpand all lines: src/node_http2.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3189,7 +3189,7 @@ void Initialize(Local<Object> target,
31893189

31903190
Local<Object> constants = Object::New(isolate);
31913191

3192-
// This does alocate one more slot than needed but it's not used.
3192+
// This does allocate one more slot than needed but it's not used.
31933193
#define V(name) FIXED_ONE_BYTE_STRING(isolate, #name),
31943194
Local<Value> error_code_names[] = {
31953195
HTTP2_ERROR_CODES(V)
Collapse file

‎src/node_i18n.cc‎

Copy file name to clipboardExpand all lines: src/node_i18n.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ void ConverterObject::Decode(const FunctionCallbackInfo<Value>& args) {
485485
}
486486
ret = ToBufferEndian(env, &result);
487487
if (omit_initial_bom && !ret.IsEmpty()) {
488-
// Peform `ret = ret.slice(2)`.
488+
// Perform `ret = ret.slice(2)`.
489489
CHECK(ret.ToLocalChecked()->IsUint8Array());
490490
Local<Uint8Array> orig_ret = ret.ToLocalChecked().As<Uint8Array>();
491491
ret = Buffer::New(env,
Collapse file

‎src/node_messaging.cc‎

Copy file name to clipboardExpand all lines: src/node_messaging.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env,
162162
// If we gather a list of all message ports, and this transferred object
163163
// is a message port, add it to that list. This is a bit of an odd case
164164
// of special handling for MessagePorts (as opposed to applying to all
165-
// transferables), but it's required for spec compliancy.
165+
// transferables), but it's required for spec compliance.
166166
DCHECK((*port_list)->IsArray());
167167
Local<Array> port_list_array = port_list->As<Array>();
168168
Local<Object> obj = host_objects[i]->object();
@@ -749,7 +749,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) {
749749
// interruption that were already present when the OnMessage() call was
750750
// first triggered, but at least 1000 messages because otherwise the
751751
// overhead of repeatedly triggering the uv_async_t instance becomes
752-
// noticable, at least on Windows.
752+
// noticeable, at least on Windows.
753753
// (That might require more investigation by somebody more familiar with
754754
// Windows.)
755755
TriggerAsync();
Collapse file

‎src/node_sockaddr.h‎

Copy file name to clipboardExpand all lines: src/node_sockaddr.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class SocketAddress : public MemoryRetainer {
9898
// for this one. The addresses are a match if:
9999
// 1. They are the same family and match identically
100100
// 2. They are different family but match semantically (
101-
// for instance, an IPv4 addres in IPv6 notation)
101+
// for instance, an IPv4 address in IPv6 notation)
102102
bool is_match(const SocketAddress& other) const;
103103

104104
// Compares this SocketAddress to the given other SocketAddress.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.