diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-05-03 23:50:58 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:46 +0300 |
commit | 8ef470fb15a659b1fc9cc9f7ff7ad1a9d7085dd3 (patch) | |
tree | 3b4210d2a8c4b3821355d0d1898cf6069afdf73b /melib/src/lib.rs | |
parent | 7e76cb7a4ad1403f3711a0dc7ed5b4d1edb61d92 (diff) |
add name in single var print in debug!
Diffstat (limited to 'melib/src/lib.rs')
-rw-r--r-- | melib/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/lib.rs b/melib/src/lib.rs index 0df248d2..39ca797c 100644 --- a/melib/src/lib.rs +++ b/melib/src/lib.rs @@ -34,7 +34,7 @@ pub mod dbg { line!(), column!() ); - eprintln!("{}", $val); + eprintln!("{} = {:?}", stringify!($val), $val); } }; ($fmt:literal, $($arg:tt)*) => { |