Skip to content

Commit

Permalink
Correct comment on String::copy_into_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Aug 15, 2023
1 parent df9334d commit 7643b62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soroban-sdk/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ impl String {

/// Copy the bytes in [String] into the given slice.
///
/// The minimum number of bytes are copied to either exhaust [String] or fill
/// slice.
/// The number of bytes copied is dictated by the size of `slice`,
/// and if the [String] is not long enough the call traps.
#[inline(always)]
pub fn copy_into_slice(&self, slice: &mut [u8]) {
let env = self.env();
Expand Down

0 comments on commit 7643b62

Please sign in to comment.