mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
fix: fix use utf_slice to use utf8_slice
This commit is contained in:
@ -110,7 +110,7 @@ You can use [utf8_slice](https://docs.rs/utf8_slice/1.0.0/utf8_slice/fn.slice.ht
|
|||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
```rust
|
```rust
|
||||||
use utf_slice;
|
use utf8_slice;
|
||||||
fn main() {
|
fn main() {
|
||||||
let s = "The 🚀 goes to the 🌑!";
|
let s = "The 🚀 goes to the 🌑!";
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ You can use [utf8_slice](https://docs.rs/utf8_slice/1.0.0/utf8_slice/fn.slice.ht
|
|||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
```rust
|
```rust
|
||||||
use utf_slice;
|
use utf8_slice;
|
||||||
fn main() {
|
fn main() {
|
||||||
let s = "The 🚀 goes to the 🌑!";
|
let s = "The 🚀 goes to the 🌑!";
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ fn main() {
|
|||||||
|
|
||||||
**示例**
|
**示例**
|
||||||
```rust
|
```rust
|
||||||
use utf_slice;
|
use utf8_slice;
|
||||||
fn main() {
|
fn main() {
|
||||||
let s = "The 🚀 goes to the 🌑!";
|
let s = "The 🚀 goes to the 🌑!";
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ fn main() {
|
|||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
```rust
|
```rust
|
||||||
use utf_slice;
|
use utf8_slice;
|
||||||
fn main() {
|
fn main() {
|
||||||
let s = "The 🚀 goes to the 🌑!";
|
let s = "The 🚀 goes to the 🌑!";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user