Skip to content

Commit

Permalink
fix: doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Nov 29, 2024
1 parent 555d5b8 commit c61cc9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contrib/bencode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
//! Decoding bencoded data:
//!
//! ```rust
//! extern crate bencode;
//! extern crate torrust_tracker_contrib_bencode;
//!
//! use bencode::{BencodeRef, BRefAccess, BDecodeOpt};
//! use torrust_tracker_contrib_bencode::{BencodeRef, BRefAccess, BDecodeOpt};
//!
//! fn main() {
//! let data = b"d12:lucky_numberi7ee"; // cspell:disable-line
Expand All @@ -22,7 +22,7 @@
//!
//! ```rust
//! #[macro_use]
//! extern crate bencode;
//! extern crate torrust_tracker_contrib_bencode;
//!
//! fn main() {
//! let message = (ben_map!{
Expand Down
2 changes: 1 addition & 1 deletion packages/located-error/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//! let b: LocatedError<TestError> = Located(e).into();
//! let l = get_caller_location();
//!
//! assert!(b.to_string().contains("Test, src/lib.rs"));
//! assert!(b.to_string().contains("src/lib.rs"));
//! ```
//!
//! # Credits
Expand Down

0 comments on commit c61cc9a

Please sign in to comment.