Skip to content

Commit 5976793

Browse files
committed
f reword docs
1 parent 6f4f7c5 commit 5976793

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/peer_channel_encryptor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ impl PeerChannelEncryptor {
419419
}
420420

421421
/// Encrypts the given message, returning the encrypted version.
422-
/// panics if msg.len() > 65535 or Noise handshake has not finished.
422+
/// panics if the length of `message`, once encoded, is greater than65535 or if the Noise
423+
/// handshake has not finished.
423424
pub fn encrypt_message<M: wire::Type>(&mut self, message: &M) -> Vec<u8> {
424425
// Allocate a buffer with 2KB, fitting most common messages. Reserve the first 16+2 bytes
425426
// for the 2-byte message type prefix and its MAC.

0 commit comments

Comments
 (0)