Răsfoiți Sursa

fix doc nitpicks

deltanedas 3 săptămâni în urmă
părinte
comite
6768d38b2f
3 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 1 1
      Cargo.toml
  2. 1 1
      src/io.rs
  3. 1 1
      src/lib.rs

+ 1 - 1
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "orio"
-version = "0.7.2"
+version = "0.7.3"
 authors = ["deltanedas"]
 edition = "2024"
 rust-version = "1.85"

+ 1 - 1
src/io.rs

@@ -34,7 +34,7 @@ pub trait Io : Sized {
 /// The user can select what type to use for length, which determines max string length.
 /// For custom types that implement this the length type should be passed to fields that implement LenIo.
 /// If you do not write any length fields that could benefit from this, do not use LenIo and use `Io` instead with the derive macro.
-/// The derive macro can be used for example with `#[io(len = u16)]` to set the length type to u16.
+/// The derive macro can be used for example with `#[io(len(u16))]` to set the length type to u16, though this type itself must still be manually implemented.
 pub trait LenIo : Sized {
 	/// Read data from the reader.
 	fn read<L: Len>(r: &mut Reader) -> Result<Self>;

+ 1 - 1
src/lib.rs

@@ -25,7 +25,7 @@
 //! - `Box` `HashMap` `Option` and `Vec` of types that implement `Io`
 //! - `Duration` and `SystemTime`. These are both stored as milliseconds.
 //!   Duration uses `#[io(len)]` to change the lengths of times you want to support.
-//!   Since u16 is a little over a minute, you'l usually want u32 or u64.
+//!   Since u16 is a little over a minute, you'll usually want u32 or u64.
 
 mod io;
 mod impls;