From 2452ce77fd8d71765f0249541c29aee713623d41 Mon Sep 17 00:00:00 2001 From: j-mendez Date: Thu, 29 Aug 2024 09:11:36 -0400 Subject: [PATCH] chore(docs): fix doc test invalid utf-8 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 436e707..45a95ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "auto_encoder" -version = "0.1.1" +version = "0.1.2" dependencies = [ "chardetng", "encoding_rs", diff --git a/Cargo.toml b/Cargo.toml index c4b7af6..a3a1e58 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auto_encoder" -version = "0.1.1" +version = "0.1.2" edition = "2021" description = "Auto encoding library" repository = "https://github.com/spider-rs/auto-encoder" diff --git a/src/lib.rs b/src/lib.rs index 5159fe1..892517d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ //! ```rust //! use auto_encoder::encode_bytes_from_language; //! -//! let html_content = b"こんにちは、世界!"; +//! let html_content = b"\xE3\x81\x93\xE3\x82\x93\xE3\x81\xAB\xE3\x81\xA1\xE3\x81\xAF\xE3\x80\x81\xE4\xB8\x96\xE7\x95\x8C\xEF\xBC\x81"; //! let encoded = encode_bytes_from_language(html_content, "ja"); //! println!("Encoded content: {}", encoded); //! ```