Skip to content

Commit e13a3f2

Browse files
committed
Fix typos in comments.
1 parent a822e52 commit e13a3f2

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn main() {
5454

5555
// Check for eg. `RUSTFLAGS=--cfg=rustix_use_experimental_asm`. This is a
5656
// rustc flag rather than a cargo feature flag because it's experimental
57-
// and not something we want accidentally enabled via --all-features.
57+
// and not something we want accidentally enabled via `--all-features`.
5858
let rustix_use_experimental_asm = var("CARGO_CFG_RUSTIX_USE_EXPERIMENTAL_ASM").is_ok();
5959

6060
// Miri doesn't support inline asm, and has builtin support for recognizing

src/fs/fd.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ pub use imp::fs::types::FsWord;
3737
///
3838
/// [`utimensat`]: crate::fs::utimensat
3939
/// [`futimens`]: crate::fs::futimens
40-
//
4140
// This is `repr(C)` and specifically laid out to match the representation used
4241
// by `utimensat` and `futimens`, which expect 2-element arrays of timestamps.
4342
#[repr(C)]

src/param/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! rustix's `init` finction.
1+
//! rustix's `init` function.
22
//!
33
//! # Safety
44
//!

src/path/arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Convenient and efficient string argment passing.
1+
//! Convenient and efficient string argument passing.
22
//!
33
//! This module defines the `Arg` trait and implements it for several common
44
//! string types. This allows users to pass any of these string types directly

tests/backends.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn test_backends() {
3434
libc_dep
3535
);
3636

37-
// Test the use-default crate with --cfg=rustix_use_libc
37+
// Test the use-default crate with `--cfg=rustix_use_libc`.
3838
assert!(
3939
has_dependency(
4040
"test-crates/use-default",
@@ -57,7 +57,7 @@ fn test_backends() {
5757
"use-default with --cfg=rustix_use_libc depends on linux-raw-sys"
5858
);
5959

60-
// Test the use-default crate with --features=rustix/use-libc
60+
// Test the use-default crate with `--features=rustix/use-libc`.
6161
assert!(
6262
has_dependency(
6363
"test-crates/use-default",

0 commit comments

Comments
 (0)