Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
my-vegetable-has-exploded authored Aug 24, 2023
1 parent 31bd238 commit 7e45549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn send_data_with_imm_to_server(rdma: &Rdma) -> io::Result<()> {
let mut lmr = rdma.alloc_local_mr(Layout::new::<[u8; 8]>())?;
{
// use cursor to append data to lmr
// use this in a scope to unlock lmr automatically
// use this in a scope to drop mr_cursor automatically
let mut mr_cursor = lmr.as_mut_slice_cursor();
let _num = mr_cursor.write(&[1_u8; 4])?;
let _num = mr_cursor.write(&[1_u8; 4])?;
Expand Down

0 comments on commit 7e45549

Please sign in to comment.