[#1] Fixing some minor comment info.

This commit is contained in:
Myrddin Dundragon 2025-03-10 13:39:53 -04:00
parent b1211287e8
commit 44eeb2915f
2 changed files with 6 additions and 3 deletions

View File

@ -2,7 +2,7 @@
pub struct Location<'a> pub struct Location<'a>
{ {
/// The module path where the message was genereated. /// The module path where the message was genereated.
/// <crate_name>[::<module>]* /// <crate_name>[`::<module>`]*
module_path: &'a str, module_path: &'a str,
/// The name of the file where the message was generated. /// The name of the file where the message was generated.

View File

@ -52,6 +52,8 @@ macro_rules! log
/// Logs a message at the Error severity Level. /// Logs a message at the Error severity Level.
/// ///
/// This is for a serious, program stopping, problem. /// This is for a serious, program stopping, problem.
///
/// This will panic.
#[macro_export] #[macro_export]
macro_rules! error macro_rules! error
{ {
@ -113,7 +115,8 @@ macro_rules! debug
{ {
(domain: $domain_name: expr, $($arg: tt)*) => (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)*); $crate::log!(domain: $domain_name, $crate::Levels::Debug, $($arg)*);
} }
@ -122,7 +125,7 @@ macro_rules! debug
($($arg: tt)*) => ($($arg: tt)*) =>
({ ({
// Only log this if we are currently in a debug build. // 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)*); $crate::log!($crate::Levels::Debug, $($arg)*);
} }