aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-semihosting/src/debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-semihosting/src/debug.rs')
-rw-r--r--cortex-m-semihosting/src/debug.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/cortex-m-semihosting/src/debug.rs b/cortex-m-semihosting/src/debug.rs
index a4fa6d8..7c7ff9d 100644
--- a/cortex-m-semihosting/src/debug.rs
+++ b/cortex-m-semihosting/src/debug.rs
@@ -11,16 +11,14 @@
//! ```no_run
//! use cortex_m_semihosting::debug::{self, EXIT_SUCCESS, EXIT_FAILURE};
//!
-//! fn main() {
-//! if 2 == 2 {
-//! // report success
-//! debug::exit(EXIT_SUCCESS);
-//! } else {
-//! // report failure
-//! debug::exit(EXIT_FAILURE);
-//! }
+//! if 2 == 2 {
+//! // report success
+//! debug::exit(EXIT_SUCCESS);
+//! } else {
+//! // report failure
+//! debug::exit(EXIT_FAILURE);
//! }
-//!
+//! ```
/// This values are taken from section 5.5.2 of
/// ADS Debug Target Guide (DUI0058).