Skip to content

Commit 61fa85e

Browse files
committed
Add no_runs
1 parent fe1562f commit 61fa85e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! # Examples
2020
//!
21-
//! ```
21+
//! ```no_run
2222
//! use webbrowser;
2323
//!
2424
//! if webbrowser::open("http://github.com").is_ok() {
@@ -112,14 +112,14 @@ impl FromStr for Browser {
112112
/// there was an error in running the command, or if the browser was not found.
113113
///
114114
/// Equivalent to:
115-
/// ```
115+
/// ```no_run
116116
/// # use webbrowser::{Browser, open_browser};
117117
/// # let url = "http://example.com";
118118
/// open_browser(Browser::Default, url);
119119
/// ```
120120
///
121121
/// # Examples
122-
/// ```
122+
/// ```no_run
123123
/// use webbrowser;
124124
///
125125
/// if webbrowser::open("http://github.com").is_ok() {
@@ -134,7 +134,7 @@ pub fn open(url: &str) -> Result<Output> {
134134
/// the same as for [open](fn.open.html).
135135
///
136136
/// # Examples
137-
/// ```
137+
/// ```no_run
138138
/// use webbrowser::{open_browser, Browser};
139139
///
140140
/// if open_browser(Browser::Firefox, "http://github.com").is_ok() {

0 commit comments

Comments
 (0)