Skip to content

Commit

Permalink
fixup! shell/democommands: Add example Rust module
Browse files Browse the repository at this point in the history
See-Also: #16833 (review)
  • Loading branch information
chrysn committed Jul 2, 2022
1 parent 1732517 commit af160b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/shell/democommands/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use riot_wrappers::println;
use core::fmt::Write;

riot_wrappers::static_command!(static_hello_world, "hello-world", "Print a greeting", hello_world);
riot_wrappers::static_command!(static_hello_world, "hello_world", "Print a greeting", hello_world);

pub fn hello_world<'a>(_w: &mut impl Write, args: impl IntoIterator<Item=&'a str>) {
let mut args = args.into_iter();
Expand Down
2 changes: 1 addition & 1 deletion tests/rust_libs/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
'end_test ends a test',
'echo prints the input command',
'empty print nothing on command',
'hello-world Print a greeting',
'hello_world Print a greeting',
'xfa_test1 xfa test command 1',
'xfa_test2 xfa test command 2',
)
Expand Down

0 comments on commit af160b3

Please sign in to comment.