Skip to content

Commit

Permalink
Add no_run to documentation examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
apogeeoak committed Aug 15, 2021
1 parent 5dd987f commit 7c97658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type Result = io::Result<()>;
///
/// # Examples
///
/// ```
/// ```no_run
/// let path = "http://rust-lang.org";
///
/// match open::that(path) {
Expand All @@ -97,7 +97,7 @@ pub fn that<T: AsRef<OsStr> + Sized>(path: T) -> Result {
///
/// # Examples
///
/// ```
/// ```no_run
/// let path = "http://rust-lang.org";
/// let app = "firefox";
///
Expand Down

0 comments on commit 7c97658

Please sign in to comment.