Skip to content

Commit dab9996

Browse files
sirhcelTiwalun
authored andcommitted
Fix wording in error message from lock_shared
Co-authored-by: Dominik Boehi <[email protected]>
1 parent 62f47b2 commit dab9996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posix/flock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub(crate) fn lock_shared(fd: RawFd) -> Result<()> {
3131
if e == nix::errno::Errno::EWOULDBLOCK {
3232
Error::new(
3333
ErrorKind::NoDevice,
34-
"Unable to acquire exclusive lock on serial port",
34+
"Unable to acquire shared lock on serial port",
3535
)
3636
} else {
3737
e.into()

0 commit comments

Comments
 (0)