From b4831b3a34fe9854c6801b88658414bc3eb7e47b Mon Sep 17 00:00:00 2001 From: Viktor Lott <22944008+viktorlott@users.noreply.github.com> Date: Thu, 12 Jan 2023 09:52:14 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e21ebd..4684496 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ struct Containter { 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: as Container::proto>::another = 20; @@ -41,7 +41,7 @@ let container: Container::ty = }; ``` - 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);