Skip to content

Add flush method to BufferWriter and improve documentation#88

Open
Soroushsrd wants to merge 1 commit intoBurntSushi:masterfrom
Soroushsrd:add-flush-method
Open

Add flush method to BufferWriter and improve documentation#88
Soroushsrd wants to merge 1 commit intoBurntSushi:masterfrom
Soroushsrd:add-flush-method

Conversation

@Soroushsrd
Copy link

This PR addresses issue #69 by adding an explicit flush method to BufferWriter and improving documentation around buffering behavior.

Changes:

  • Added new BufferWriter::flush() method for explicit flushing
  • Updated documentation for print() to clarify its buffering behavior
  • Added examples showing correct usage of flush()

Testing:

  • Added examples in documentation that serve as doc-tests

Fixes #69

- Add new flush method to BufferWriter for explicit flushing
- Update documentation for print() to clarify buffering behavior
- Document Buffer::flush() as no-op

Fixes BurntSushi#69"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is BufferWriter::print expected to flush?

1 participant