We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f67169 + a389d86 commit ebdb0deCopy full SHA for ebdb0de
src/libcore/io.rs
@@ -1010,6 +1010,16 @@ pub fn FILE_reader(f: *libc::FILE, cleanup: bool) -> @Reader {
1010
// top-level functions that take a reader, or a set of default methods on
1011
// reader (which can then be called reader)
1012
1013
+/**
1014
+* Gives a `Reader` that allows you to read values from standard input.
1015
+*
1016
+* # Examples
1017
+* ~~~
1018
+* let stdin = core::io::stdin();
1019
+* let line = stdin.read_line();
1020
+* core::io::print(line);
1021
1022
+*/
1023
pub fn stdin() -> @Reader {
1024
unsafe {
1025
@rustrt::rust_get_stdin() as @Reader
0 commit comments