diff options
author | Ethan P <eth-p+git@hidden.email> | 2020-05-27 15:26:34 -0700 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-05-29 22:13:10 +0200 |
commit | c4d0d068e4f716535e20ec43ea49ddd2011fe20e (patch) | |
tree | b4d6b63cbe4206d32aa813f2a2b405b4d318182e /examples | |
parent | c03a027240c7689df76f5bbf0246d67a05af1898 (diff) |
Update input API example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/inputs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/inputs.rs b/examples/inputs.rs index be4e9e3b..27064e49 100644 --- a/examples/inputs.rs +++ b/examples/inputs.rs @@ -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() |