From 228f2d37dc07f8905aad0e92e4cbf871c5377e41 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 +- README.md | 2 +- src/lib.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 436e707..37fce76 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "auto_encoder" -version = "0.1.1" +version = "0.1.3" dependencies = [ "chardetng", "encoding_rs", diff --git a/Cargo.toml b/Cargo.toml index c4b7af6..80757ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "auto_encoder" -version = "0.1.1" +version = "0.1.3" edition = "2021" description = "Auto encoding library" repository = "https://github.com/spider-rs/auto-encoder" diff --git a/README.md b/README.md index fc70846..1479467 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ The library supports a wide range of locales and their corresponding encodings, ## Contributing -Contributions are welcome! Please feel free to open an issue or submit a pull request on [GitHub](https://github.com/spider-rs/auto_encoder). +Contributions are welcome! Please feel free to open an issue or submit a pull request on [GitHub](https://github.com/spider-rs/auto-encoder). ## License 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); //! ```