Skip to content

Commit 27a6e55

Browse files
committed
Add doc comment to Addr::as_bytes
1 parent cc901e3 commit 27a6e55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/std/src/addresses.rs

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ impl Addr {
5353
self.0.as_str()
5454
}
5555

56+
/// Returns the UTF-8 encoded address string as a byte array.
57+
///
58+
/// This is equivalent to `address.as_str().as_bytes()`.
5659
#[inline]
5760
pub fn as_bytes(&self) -> &[u8] {
5861
self.0.as_bytes()

0 commit comments

Comments
 (0)