File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ pub fn unlockpt<Fd: AsFd>(fd: Fd) -> io::Result<()> {
141141/// `grantpt(fd)`—Grant access to the user side of a pseudoterminal.
142142///
143143/// On Linux, calling this function has no effect, as the kernel is expected to
144- /// grant the appropriate access. On all other platorms , this function has
144+ /// grant the appropriate access. On all other platforms , this function has
145145/// unspecified behavior if the calling process has a [`Signal::Child`] signal
146146/// handler installed.
147147///
Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ pub const SIGRTMAX: u32 = {
573573 linux_raw_sys:: general:: SIGRTMAX
574574 }
575575
576- // On platfoms that don't, derive it from `_NSIG`.
576+ // On platforms that don't, derive it from `_NSIG`.
577577 #[ cfg( any( target_arch = "arm" , target_arch = "x86" , target_arch = "x86_64" ) ) ]
578578 {
579579 linux_raw_sys:: general:: _NSIG - 1
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn test_dup() {
1717 let mut buf = [ 0_u8 ; 4 ] ;
1818 assert_eq ! ( rustix:: io:: read( & file, & mut buf) , Ok ( 4 ) ) ;
1919
20- // Both postitions updated.
20+ // Both positions updated.
2121 assert_eq ! (
2222 rustix:: fs:: seek( & file, rustix:: fs:: SeekFrom :: Current ( 0 ) ) ,
2323 Ok ( 4 )
@@ -29,7 +29,7 @@ fn test_dup() {
2929
3030 assert_eq ! ( rustix:: io:: read( & alt, & mut buf) , Ok ( 4 ) ) ;
3131
32- // Both postitions updated.
32+ // Both positions updated.
3333 assert_eq ! (
3434 rustix:: fs:: seek( & file, rustix:: fs:: SeekFrom :: Current ( 0 ) ) ,
3535 Ok ( 8 )
Original file line number Diff line number Diff line change @@ -627,7 +627,7 @@ fn test_unix_peercred_explicit() {
627627
628628 match cmsg_buffer. drain ( ) . next ( ) . unwrap ( ) {
629629 RecvAncillaryMessage :: ScmCredentials ( ucred2) => assert_eq ! ( ucred2, ucred) ,
630- _ => panic ! ( "Unexpected ancilliary message" ) ,
630+ _ => panic ! ( "Unexpected ancillary message" ) ,
631631 } ;
632632}
633633
@@ -683,7 +683,7 @@ fn test_unix_peercred_implicit() {
683683
684684 match cmsg_buffer. drain ( ) . next ( ) . unwrap ( ) {
685685 RecvAncillaryMessage :: ScmCredentials ( ucred2) => assert_eq ! ( ucred2, ucred) ,
686- _ => panic ! ( "Unexpected ancilliary message" ) ,
686+ _ => panic ! ( "Unexpected ancillary message" ) ,
687687 } ;
688688}
689689
Original file line number Diff line number Diff line change @@ -630,7 +630,7 @@ fn test_unix_peercred() {
630630
631631 match cmsg_buffer. drain ( ) . next ( ) . unwrap ( ) {
632632 RecvAncillaryMessage :: ScmCredentials ( ucred2) => assert_eq ! ( ucred2, ucred) ,
633- _ => panic ! ( "Unexpected ancilliary message" ) ,
633+ _ => panic ! ( "Unexpected ancillary message" ) ,
634634 } ;
635635}
636636
You can’t perform that action at this time.
0 commit comments