Skip to content

Commit

Permalink
chore: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Jan 12, 2025
1 parent 480bc74 commit a8b858e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -34,6 +33,7 @@
//! }
//! }
//! }
//! # }
//! #
//! # #[cfg(not(feature = "std"))]
//! # fn main() {}
Expand Down

0 comments on commit a8b858e

Please sign in to comment.