diff --git a/src/lib.rs b/src/lib.rs index ebdde5c..a89164b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,12 +15,11 @@ //! //! ``` //! # #[cfg(feature = "std")] +//! # { //! use std::str; //! -//! # #[cfg(feature = "std")] //! use sysexits::ExitCode; //! -//! # #[cfg(feature = "std")] //! fn main() -> ExitCode { //! let bytes = [0xf0, 0x9f, 0x92, 0x96]; //! match str::from_utf8(&bytes) { @@ -34,6 +33,7 @@ //! } //! } //! } +//! # } //! # //! # #[cfg(not(feature = "std"))] //! # fn main() {}