From a8b858e36ce363a39887869e19dcfe8bb8c2b606 Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Sun, 12 Jan 2025 16:36:08 +0900 Subject: [PATCH] chore: Update examples --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {}