Skip to content

Commit

Permalink
rename function parameter, mask => key
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Apr 14, 2022
1 parent 657d828 commit 387286b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream/ctrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ where
/// Set mask for upcoming writes.
/// An attempt to set mask during a write will fail with [`CtrlError::SetMaskInWrite`].
#[inline]
pub fn set_write_mask_key(&mut self, mask: [u8; 4]) -> Result<(), CtrlError> {
pub fn set_write_mask_key(&mut self, key: [u8; 4]) -> Result<(), CtrlError> {
// make sure this is a new fresh write
if let WriteState::WriteHead(head) = self.write_state {
if head.is_empty() {
self.role.set_write_mask_key(mask);
self.role.set_write_mask_key(key);
return Ok(());
}
}
Expand Down

0 comments on commit 387286b

Please sign in to comment.