Skip to content

Commit f1cca59

Browse files
committed
Use improved example notation
1 parent 4d8a2cb commit f1cca59

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

doc/modules/ROOT/pages/examples.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ Scientific Format with Specified Precision and Padding:
263263
We can make one final change to our `<format>` example where instead of using `std::cout`, we use pass:[C++23's] `<print>`.
264264
This example can be found in the `examples/` folder as https://github.com/cppalliance/decimal/blob/develop/examples/print.cpp[print.cpp].
265265

266+
267+
.`<print>` Example
268+
====
266269
[source, c++]
267270
----
268271
#include <boost/decimal.hpp>
@@ -280,8 +283,10 @@ int main()
280283
}
281284
----
282285
283-
Expected Output:
284-
----
286+
.Expected Output:
287+
....
285288
03.140e+00
286289
03.141e+00
287-
----
290+
....
291+
====
292+

0 commit comments

Comments
 (0)