Skip to content

Commit

Permalink
src: use transferred consistently
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
danbev authored and danielleadams committed Dec 7, 2020
1 parent ca8db41 commit e7b2d91
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/base_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ class BaseObject : public MemoryRetainer {
// the current object:
// - kUntransferable:
// No transfer is possible, either because this type of BaseObject does
// not know how to be transfered, or because it is not in a state in
// not know how to be transferred, or because it is not in a state in
// which it is possible to do so (e.g. because it has already been
// transfered).
// transferred).
// - kTransferable:
// This object can be transfered in a destructive fashion, i.e. will be
// This object can be transferred in a destructive fashion, i.e. will be
// rendered unusable on the sending side of the channel in the process
// of being transfered. (In C++ this would be referred to as movable but
// of being transferred. (In C++ this would be referred to as movable but
// not copyable.) Objects of this type need to be listed in the
// `transferList` argument of the relevant postMessage() call in order to
// make sure that they are not accidentally destroyed on the sending side.
Expand Down
2 changes: 1 addition & 1 deletion src/node_messaging.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MessagePort;
typedef MaybeStackBuffer<v8::Local<v8::Value>, 8> TransferList;

// Used to represent the in-flight structure of an object that is being
// transfered or cloned using postMessage().
// transferred or cloned using postMessage().
class TransferData : public MemoryRetainer {
public:
// Deserialize this object on the receiving end after a .postMessage() call.
Expand Down
2 changes: 1 addition & 1 deletion src/quic/node_quic_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ class QuicApplication : public MemoryRetainer,

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

0 comments on commit e7b2d91

Please sign in to comment.