Update input API example

This commit is contained in:
Ethan P 2020-05-27 15:26:34 -07:00 committed by David Peter
parent c03a027240
commit c4d0d068e4
1 changed files with 3 additions and 3 deletions

View File

@ -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()