Skip to content

Commit

Permalink
fix bug in doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wheird-lee committed Mar 5, 2023
1 parent 52b6845 commit 1ea13e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
//!
Expand Down

0 comments on commit 1ea13e0

Please sign in to comment.