Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/libstd/ffi/c_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ use sys;
///
/// # Examples
///
/// ```no_run
/// ```ignore (extern-declaration)
/// # fn main() {
/// use std::ffi::CString;
/// use std::os::raw::c_char;
Expand Down Expand Up @@ -150,7 +150,7 @@ pub struct CString {
///
/// Inspecting a foreign C string:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CStr;
/// use std::os::raw::c_char;
///
Expand All @@ -164,7 +164,7 @@ pub struct CString {
///
/// Passing a Rust-originating C string:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::{CString, CStr};
/// use std::os::raw::c_char;
///
Expand All @@ -180,7 +180,7 @@ pub struct CString {
///
/// Converting a foreign C string into a Rust [`String`]:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CStr;
/// use std::os::raw::c_char;
///
Expand Down Expand Up @@ -307,7 +307,7 @@ impl CString {
///
/// # Examples
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CString;
/// use std::os::raw::c_char;
///
Expand Down Expand Up @@ -389,7 +389,7 @@ impl CString {
/// Create a `CString`, pass ownership to an `extern` function (via raw pointer), then retake
/// ownership with `from_raw`:
///
/// ```no_run
/// ```ignore (extern-declaration)
/// use std::ffi::CString;
/// use std::os::raw::c_char;
///
Expand Down Expand Up @@ -882,7 +882,7 @@ impl CStr {
///
/// # Examples
///
/// ```no_run
/// ```ignore (extern-declaration)
/// # fn main() {
/// use std::ffi::CStr;
/// use std::os::raw::c_char;
Expand Down