Skip to content

Commit c74f40e

Browse files
committed
Docs: Add some missing code formatting
1 parent 0e949ff commit c74f40e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

modules/juce_dsp/maths/juce_LookupTable.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ namespace juce::dsp
4848
4949
Example:
5050
51-
LookupTable<float> lut ([] (size_t i) { return std::sqrt ((float) i); }, 64);
52-
auto outValue = lut[17];
51+
@code
52+
LookupTable<float> lut ([] (size_t i) { return std::sqrt ((float) i); }, 64);
53+
auto outValue = lut[17];
54+
@endcode
5355
5456
@see LookupTableTransform
5557
@@ -167,8 +169,10 @@ class LookupTable
167169
168170
Example:
169171
170-
LookupTableTransform<float> tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64);
171-
auto outValue = tanhApprox (4.2f);
172+
@code
173+
LookupTableTransform<float> tanhApprox ([] (float x) { return std::tanh (x); }, -5.0f, 5.0f, 64);
174+
auto outValue = tanhApprox (4.2f);
175+
@endcode
172176
173177
Note: If you try to call the function with an input outside the provided
174178
range, it will return either the first or the last recorded LookupTable value.

0 commit comments

Comments
 (0)