Skip to content

Commit 4582734

Browse files
committed
chore: add docstring to is_32bit_userspace()
1 parent 1b400b4 commit 4582734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dist/dist.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ impl Deref for TargetTriple {
237237
}
238238
}
239239

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

0 commit comments

Comments
 (0)