From 1c80744989e014b66c0187e424d2ff3858d2ee8c Mon Sep 17 00:00:00 2001 From: Robbert van der Helm <mail@robbertvanderhelm.nl> Date: Wed, 2 Feb 2022 22:29:14 +0100 Subject: [PATCH] nih_debug_assert_neq -> nih_debug_assert_ne --- src/debug.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug.rs b/src/debug.rs index 40368b83..875c32b0 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -77,10 +77,10 @@ macro_rules! nih_debug_assert_eq { ); } -/// A `debug_assert_neq!()` analogue that prints the error with line number information instead of +/// A `debug_assert_ne!()` analogue that prints the error with line number information instead of /// panicking. #[macro_export] -macro_rules! nih_debug_assert_neq { +macro_rules! nih_debug_assert_ne { ($left:expr, $right:expr $(,)?) => ( if cfg!(debug_assertions) && $left == $right { nih_log!(concat!("Debug assertion failed: ", stringify!($left), " == ", stringify!($right)));