Skip to content

Commit 51d61cc

Browse files
committed
Added output example to docs for FMT constants.
1 parent 8207d48 commit 51d61cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/specs/stdlib_io.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ program demo_fmt_constants
307307
c32 = cmplx(100.0_real32, kind=real32)
308308
c64 = cmplx(100.0_real64, kind=real64)
309309
310-
print "2("//FMT_INT//",1x)", i32, i64
311-
print FMT_REAL_SP, r32
312-
print FMT_REAL_DP, r64
313-
print FMT_COMPLEX_SP, c32
314-
print FMT_COMPLEX_DP, c64
310+
print "(2("//FMT_INT//",1x))", i32, i64 ! outputs: 100 100
311+
print FMT_REAL_SP, r32 ! outputs: 1.00000000E+02
312+
print FMT_REAL_DP, r64 ! outputs: 1.0000000000000000E+002
313+
print FMT_COMPLEX_SP, c32 ! outputs: 1.00000000E+02 0.00000000E+00
314+
print FMT_COMPLEX_DP, c64 ! outputs: 1.0000000000000000E+002 0.0000000000000000E+000
315315
316316
end program demo_fmt_constants
317-
```
317+
```

0 commit comments

Comments
 (0)