Skip to content

Commit e7b2d91

Browse files
danbevdanielleadams
authored andcommitted
src: use transferred consistently
This commit updates usages of transfered to be transferred to make it consist in all comments. PR-URL: #36340 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
1 parent ca8db41 commit e7b2d91

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/base_object.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ class BaseObject : public MemoryRetainer {
116116
// the current object:
117117
// - kUntransferable:
118118
// No transfer is possible, either because this type of BaseObject does
119-
// not know how to be transfered, or because it is not in a state in
119+
// not know how to be transferred, or because it is not in a state in
120120
// which it is possible to do so (e.g. because it has already been
121-
// transfered).
121+
// transferred).
122122
// - kTransferable:
123-
// This object can be transfered in a destructive fashion, i.e. will be
123+
// This object can be transferred in a destructive fashion, i.e. will be
124124
// rendered unusable on the sending side of the channel in the process
125-
// of being transfered. (In C++ this would be referred to as movable but
125+
// of being transferred. (In C++ this would be referred to as movable but
126126
// not copyable.) Objects of this type need to be listed in the
127127
// `transferList` argument of the relevant postMessage() call in order to
128128
// make sure that they are not accidentally destroyed on the sending side.

src/node_messaging.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MessagePort;
2020
typedef MaybeStackBuffer<v8::Local<v8::Value>, 8> TransferList;
2121

2222
// Used to represent the in-flight structure of an object that is being
23-
// transfered or cloned using postMessage().
23+
// transferred or cloned using postMessage().
2424
class TransferData : public MemoryRetainer {
2525
public:
2626
// Deserialize this object on the receiving end after a .postMessage() call.

src/quic/node_quic_session.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ class QuicApplication : public MemoryRetainer,
735735

736736
// QUIC sessions are logical connections that exchange data
737737
// back and forth between peer endpoints via UDP. Every QuicSession
738-
// has an associated TLS context and all data transfered between
738+
// has an associated TLS context and all data transferred between
739739
// the peers is always encrypted. Unlike TLS over TCP, however,
740740
// The QuicSession uses a session identifier that is independent
741741
// of both the local *and* peer IP address, allowing a QuicSession

0 commit comments

Comments
 (0)