compiletest: Fix typos in get_lib_name() comment

This commit is contained in:
Martin Nordholts 2024-03-10 07:56:56 +01:00
parent bc5aeb14f5
commit 9de0921852
1 changed files with 2 additions and 2 deletions

View File

@ -83,10 +83,10 @@ fn disable_error_reporting<F: FnOnce() -> R, R>(f: F) -> R {
/// The platform-specific library name /// The platform-specific library name
fn get_lib_name(lib: &str, dylib: bool) -> String { fn get_lib_name(lib: &str, dylib: bool) -> String {
// In some casess (e.g. MUSL), we build a static // In some cases (e.g. MUSL), we build a static
// library, rather than a dynamic library. // library, rather than a dynamic library.
// In this case, the only path we can pass // In this case, the only path we can pass
// with '--extern-meta' is the '.lib' file // with '--extern-meta' is the '.rlib' file
if !dylib { if !dylib {
return format!("lib{}.rlib", lib); return format!("lib{}.rlib", lib);
} }