From 3403348beb5372a73952440d9253cb0fbe5b3562 Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 10 Jul 2026 16:08:58 +1000 Subject: [PATCH] Explicitly call out C++ code in comments --- cpp-pow-overload/src/bin/cpp-pow-overload.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp-pow-overload/src/bin/cpp-pow-overload.rs b/cpp-pow-overload/src/bin/cpp-pow-overload.rs index 8b68e8b..54c4fa1 100644 --- a/cpp-pow-overload/src/bin/cpp-pow-overload.rs +++ b/cpp-pow-overload/src/bin/cpp-pow-overload.rs @@ -30,6 +30,7 @@ impl PowArgs for (c_float, c_float) { let (base, exponent) = self; unsafe { cpp!([base as "float", exponent as "float"] -> c_float as "float" { + // This is C++ code! return std::pow(base, exponent); }) }