Update input API example

pull/1036/head
Ethan P 4 years ago committed by David Peter
parent c03a027240
commit c4d0d068e4

@ -9,9 +9,9 @@ fn main() {
.line_numbers(true)
.inputs(vec![
Input::from_bytes(b"echo 'Hello World!'")
.name("embedded.sh")
.title("An embedded shell script.")
.kind("Embedded"),
.name("embedded.sh") // Dummy name provided to detect the syntax.
.kind("Embedded")
.title("An embedded shell script."),
Input::from_stdin().title("Standard Input").kind("FD"),
])
.print()

Loading…
Cancel
Save