Skip to content

Commit

Permalink
crypto: fix comment in ByteSource
Browse files Browse the repository at this point in the history
PR-URL: #35972
Refs: #35821
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
tniessen authored and lpinca committed Nov 5, 2020
1 parent c575aec commit c9e3848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ ByteSource& ByteSource::operator=(ByteSource&& other) noexcept {

std::unique_ptr<BackingStore> ByteSource::ReleaseToBackingStore() {
// It's ok for allocated_data_ to be nullptr but
// only if size_ is not zero.
// only if size_ is zero.
CHECK_IMPLIES(size_ > 0, allocated_data_ != nullptr);
std::unique_ptr<BackingStore> ptr = ArrayBuffer::NewBackingStore(
allocated_data_,
Expand Down

0 comments on commit c9e3848

Please sign in to comment.