on master help sign in
Update input API example
commitc4d0d068e4f716535e20ec43ea49ddd2011fe20e authorEthan P <eth-p+git@hidden.email> dateWed 27 May 2020, 15:26 (6 years ago) parentc03a027
1 file changed+3−3
examples/inputs.rs+3−3
examples/inputs.rs+3−3
@@ -9,9 +9,9 @@ fn main() {
99 .line_numbers(true)
1010 .inputs(vec![
1111 Input::from_bytes(b"echo 'Hello World!'")
12− .name("embedded.sh")
13− .title("An embedded shell script.")
14− .kind("Embedded"),
12+ .name("embedded.sh") // Dummy name provided to detect the syntax.
13+ .kind("Embedded")
14+ .title("An embedded shell script."),
1515 Input::from_stdin().title("Standard Input").kind("FD"),
1616 ])
1717 .print()