Skip to content

Commit

Permalink
Merge pull request #4 from HungYann/homework5
Browse files Browse the repository at this point in the history
Homework5
  • Loading branch information
HungYann authored Apr 16, 2024
2 parents 1aa03f0 + 2c44e0e commit 39b2124
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 116 deletions.
11 changes: 11 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#[macro_export]
macro_rules! log {
($level:expr, $($arg:tt)*) => {
println!("[{}] {}", $level, format_args!($($arg)*))
};
}

fn main() {
log!("debug", "This is a debug message");
log!("error", "Something went wrong: {}", 404);
}
30 changes: 0 additions & 30 deletions src/task1/method1.rs

This file was deleted.

43 changes: 0 additions & 43 deletions src/task1/method2.rs

This file was deleted.

43 changes: 0 additions & 43 deletions src/task2/main.rs

This file was deleted.

0 comments on commit 39b2124

Please sign in to comment.