Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorlott committed Jan 12, 2023
1 parent e21f830 commit b4831b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct Containter<T> {
struct Area(i32);
```
- Will let you access the struct types as followed:
```
```rust
let current: Container::current = 10;
let buffer: Container::buffer = vec![current];
let another: <Container::ty<u8> as Container::proto>::another = 20;
Expand All @@ -41,7 +41,7 @@ let container: Container::ty<u8> =
};
```
- It's also possible to use it as following:
```
```rust
trait Trait: Container::proto {
fn retrieve(&self) -> Container::proto::buffer;
fn extend(&mut self, val: Container::proto::another);
Expand Down

0 comments on commit b4831b3

Please sign in to comment.