Skip to content

Commit

Permalink
edit doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Mar 9, 2024
1 parent 8d1fbfa commit dda4b5f
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docs/v4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,17 @@ pub enum Value {
}
```

* rbs build a map value
```rust
fn main(){
let v = rbs::to_value!{
"key":"value",
"key2":"value2"
};
}
```

* rbs make a value
* rbs encode to value
```rust
fn main(){
let v = rbs::to_value!(1);
Expand All @@ -613,16 +622,6 @@ fn main(){
}
```

* rbs build a map value
```rust
fn main(){
let v = rbs::to_value!{
"key":"value",
"key2":"value2"
};
}
```

* rbs decode from value
```rust
fn main(){
Expand Down

0 comments on commit dda4b5f

Please sign in to comment.