Skip to content

Commit c397280

Browse files
committed
following zbeekman comment
1 parent a042da7 commit c397280

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/stdlib_experimental_io.fypp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,22 @@ contains
174174
!!
175175
!! To open a file to read:
176176
!!
177-
!! u = open("somefile.txt") # The default `mode` is "rt"
177+
!!```fortran
178+
!! u = open("somefile.txt") ! The default `mode` is "rt"
178179
!! u = open("somefile.txt", "r")
180+
!!```
179181
!!
180182
!! To open a file to write:
181183
!!
184+
!!```fortran
182185
!! u = open("somefile.txt", "w")
186+
!!```
183187
!!
184188
!! To append to the end of the file if it exists:
185189
!!
190+
!!```fortran
186191
!! u = open("somefile.txt", "a")
192+
!!```
187193

188194
character(*), intent(in) :: filename
189195
character(*), intent(in), optional :: mode

0 commit comments

Comments
 (0)