Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit dfe8616

Browse files
author
Brandon Matthews
committed
Improve examples
1 parent 687f3b5 commit dfe8616

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
//! This example will demonstrate how to print formatted strings.
3737
//!
3838
//! ```rust
39-
//! #[macro_use]
4039
//! extern crate cortex_m_semihosting;
4140
//!
4241
//! use cortex_m_semihosting::hio;
@@ -52,7 +51,7 @@
5251
//! let language = "Rust";
5352
//! let ranking = 1;
5453
//!
55-
//! stdout.write_fmt(format_args!("{} on embedded is #{}!", language, ranking))?;
54+
//! write!(stdout, "{} on embedded is #{}!", language, ranking)?;
5655
//!
5756
//! Ok(())
5857
//! }
@@ -116,7 +115,6 @@
116115
//! Target program:
117116
//!
118117
//! ```
119-
//! #[macro_use]
120118
//! extern crate cortex_m_semihosting;
121119
//!
122120
//! // This function will be called by the application

0 commit comments

Comments
 (0)