Skip to content

Commit c7f0829

Browse files
authored
Remove incorrect "lib" prefixes in CXXSTDLIB doc comments (#1228)
1 parent 7de85cc commit c7f0829

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,8 @@ impl Build {
844844
/// The name of the C++ standard library to link is decided by:
845845
/// 1. If [`cpp_link_stdlib`](Build::cpp_link_stdlib) is set, use its value.
846846
/// 2. Else if the `CXXSTDLIB` environment variable is set, use its value.
847-
/// 3. Else the default is `libc++` for OS X and BSDs, `libc++_shared` for Android,
848-
/// `None` for MSVC and `libstdc++` for anything else.
847+
/// 3. Else the default is `c++` for OS X and BSDs, `c++_shared` for Android,
848+
/// `None` for MSVC and `stdc++` for anything else.
849849
pub fn cpp(&mut self, cpp: bool) -> &mut Build {
850850
self.cpp = cpp;
851851
self
@@ -3201,8 +3201,8 @@ impl Build {
32013201
/// Returns the C++ standard library:
32023202
/// 1. If [`cpp_link_stdlib`](cc::Build::cpp_link_stdlib) is set, uses its value.
32033203
/// 2. Else if the `CXXSTDLIB` environment variable is set, uses its value.
3204-
/// 3. Else the default is `libc++` for OS X and BSDs, `libc++_shared` for Android,
3205-
/// `None` for MSVC and `libstdc++` for anything else.
3204+
/// 3. Else the default is `c++` for OS X and BSDs, `c++_shared` for Android,
3205+
/// `None` for MSVC and `stdc++` for anything else.
32063206
fn get_cpp_link_stdlib(&self) -> Result<Option<Cow<'_, Path>>, Error> {
32073207
match &self.cpp_link_stdlib {
32083208
Some(s) => Ok(s.as_deref().map(Path::new).map(Cow::Borrowed)),

0 commit comments

Comments
 (0)