Skip to content

Commit

Permalink
chore: add docstring to is_32bit_userspace()
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jan 25, 2024
1 parent 1b400b4 commit 4582734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dist/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ impl Deref for TargetTriple {
}
}

/// Check if /bin/sh is a 32-bit binary. If it doesn't exist, fall back to
/// checking if _we_ are a 32-bit binary.
/// rustup-init.sh also relies on checking /bin/sh for bitness.
#[cfg(not(windows))]
fn is_32bit_userspace() -> bool {
// Check if /bin/sh is a 32-bit binary. If it doesn't exist, fall back to
// checking if _we_ are a 32-bit binary.
// rustup-init.sh also relies on checking /bin/sh for bitness.
use std::fs;
use std::io::{self, Read};

Expand Down

0 comments on commit 4582734

Please sign in to comment.