Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite io::BufRead doc examples to better demonstrate behaviors. #40642

Merged
merged 1 commit into from
Mar 26, 2017

Commits on Mar 24, 2017

  1. Rewrite io::BufRead doc examples to better demonstrate behaviors.

    Prior to this commit, most of the `BufRead` examples used `StdinLock` to
    demonstrate how certain `BufRead` methods worked. Using `StdinLock` is
    not ideal since:
    
    * Relying on run-time data means we can't show concrete examples of how
      these methods work up-front. The user is required to run them in order
      to see how they behave.
    * If the user tries to run an example in the playpen, it won't work
      because the playpen doesn't support user input to stdin.
    frewsxcv committed Mar 24, 2017
    Configuration menu
    Copy the full SHA
    8fba638 View commit details
    Browse the repository at this point in the history