소스 검색

update readme

deltanedas 2 년 전
부모
커밋
25bfceb4b1
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -5,6 +5,7 @@ Lightweight and clean alternative to serde, focusing on writing to and from `Vec
 ```rs
 #[derive(Io)]
 struct Thingy {
+	#[io(len(u16))]
 	name: String,
 	kind: ThingyKind,
 	#[io(ignore)]
@@ -14,7 +15,7 @@ struct Thingy {
 #[derive(Io)]
 enum ThingyKind {
 	Normal,
-	Special(String)
+	Special(#[io(len(u8))] String)
 }
 
 let thingy = Thingy {