From bd2f465321df8ad410e772d9127f333c13751e53 Mon Sep 17 00:00:00 2001 From: Tom Poole Date: Fri, 16 Jan 2026 14:09:22 +0000 Subject: [PATCH] Docs: Add some missing code formatting --- modules/juce_dsp/maths/juce_LookupTable.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/juce_dsp/maths/juce_LookupTable.h b/modules/juce_dsp/maths/juce_LookupTable.h index 02ad85d8a0..3e555adb4c 100644 --- a/modules/juce_dsp/maths/juce_LookupTable.h +++ b/modules/juce_dsp/maths/juce_LookupTable.h @@ -48,8 +48,10 @@ namespace juce::dsp Example: - LookupTable lut ([] (size_t i) { return std::sqrt ((float) i); }, 64); - auto outValue = lut[17]; + @code + LookupTable lut ([] (size_t i) { return std::sqrt ((float) i); }, 64); + auto outValue = lut[17]; + @endcode @see LookupTableTransform @@ -167,8 +169,10 @@ private: Example: - LookupTableTransform tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64); - auto outValue = tanhApprox (4.2f); + @code + LookupTableTransform tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64); + auto outValue = tanhApprox (4.2f); + @endcode Note: If you try to call the function with an input outside the provided range, it will return either the first or the last recorded LookupTable value.