[#1] Fixing some minor comment info.
This commit is contained in:
parent
b1211287e8
commit
44eeb2915f
@ -2,7 +2,7 @@
|
||||
pub struct Location<'a>
|
||||
{
|
||||
/// The module path where the message was genereated.
|
||||
/// <crate_name>[::<module>]*
|
||||
/// <crate_name>[`::<module>`]*
|
||||
module_path: &'a str,
|
||||
|
||||
/// The name of the file where the message was generated.
|
||||
|
@ -52,6 +52,8 @@ macro_rules! log
|
||||
/// Logs a message at the Error severity Level.
|
||||
///
|
||||
/// This is for a serious, program stopping, problem.
|
||||
///
|
||||
/// This will panic.
|
||||
#[macro_export]
|
||||
macro_rules! error
|
||||
{
|
||||
@ -113,7 +115,8 @@ macro_rules! debug
|
||||
{
|
||||
(domain: $domain_name: expr, $($arg: tt)*) =>
|
||||
({
|
||||
if cfg!(debug_assertions) == true
|
||||
// Only log this if we are currently in a debug build.
|
||||
if cfg!(debug_assertions)
|
||||
{
|
||||
$crate::log!(domain: $domain_name, $crate::Levels::Debug, $($arg)*);
|
||||
}
|
||||
@ -122,7 +125,7 @@ macro_rules! debug
|
||||
($($arg: tt)*) =>
|
||||
({
|
||||
// Only log this if we are currently in a debug build.
|
||||
if cfg!(debug_assertions) == true
|
||||
if cfg!(debug_assertions)
|
||||
{
|
||||
$crate::log!($crate::Levels::Debug, $($arg)*);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user