Skip to content

Commit 7c97658

Browse files
committed
Add no_run to documentation examples.
1 parent 5dd987f commit 7c97658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type Result = io::Result<()>;
7676
///
7777
/// # Examples
7878
///
79-
/// ```
79+
/// ```no_run
8080
/// let path = "http://rust-lang.org";
8181
///
8282
/// match open::that(path) {
@@ -97,7 +97,7 @@ pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> Result {
9797
///
9898
/// # Examples
9999
///
100-
/// ```
100+
/// ```no_run
101101
/// let path = "http://rust-lang.org";
102102
/// let app = "firefox";
103103
///

0 commit comments

Comments
 (0)