Skip to content

Commit

Permalink
Merge pull request #591 from istudyatuni/clarify-docs
Browse files Browse the repository at this point in the history
clarify docs about dropping stream
  • Loading branch information
dvdsk authored Jul 5, 2024
2 parents 3a23d2c + 2427bde commit 7a10534
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
//! use std::io::BufReader;
//! use rodio::{Decoder, OutputStream, source::Source};
//!
//! // Get an output stream handle to the default physical sound device
//! // Get an output stream handle to the default physical sound device.
//! // Note that no sound will be played if _stream is dropped
//! let (_stream, stream_handle) = OutputStream::try_default().unwrap();
//! // Load a sound from a file, using a path relative to Cargo.toml
//! let file = BufReader::new(File::open("examples/music.ogg").unwrap());
Expand Down

0 comments on commit 7a10534

Please sign in to comment.