diff --git a/Cargo.toml b/Cargo.toml index ac7fb61..b32e1db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "try_buf" -version = "0.1.2" +version = "0.1.3" edition = "2021" description = "This crate provides no-panic API for bytes::Buf" readme = "README.md" diff --git a/README.md b/README.md index 5cfa89b..3b91f32 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ issues and PRs are welcome. ```rust use bytes::{Bytes, Buf}; -use crate::TryBuf; +use try_buf::TryBuf; let mut bytes = Bytes::from_static(&[1, 2, 3, 4]); diff --git a/src/lib.rs b/src/lib.rs index 845a7dc..a725201 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ //! //! ``` //! use bytes::{Bytes, Buf}; -//! use crate::TryBuf; +//! use try_buf::TryBuf; //! //! let mut bytes = Bytes::from_static(&[1, 2, 3, 4]); //!