Skip to content

Commit

Permalink
std: Add a note about the print! macro and output buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Mar 30, 2015
1 parent 01f2c67 commit 6e8693b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/macros.rs
Expand Up @@ -64,6 +64,10 @@ macro_rules! panic {
///
/// Equivalent to the `println!` macro except that a newline is not printed at
/// the end of the message.
///
/// Note that stdout is frequently line-buffered by default so it may be
/// necessary to use `io::stdout().flush()` to ensure the output is emitted
/// immediately.
#[macro_export]
#[stable(feature = "rust1", since = "1.0.0")]
#[allow_internal_unstable]
Expand Down

0 comments on commit 6e8693b

Please sign in to comment.