Skip to content

Commit 8788cc6

Browse files
committed
fix docs
1 parent ebf7aca commit 8788cc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/specs/stdlib_io.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ This function reads the entirety of a specified ASCII file and returns its conte
273273

274274
### Syntax
275275

276-
`call [[stdlib_io(module):getfile(interface)]] (fileName [, err] [, delete])`
276+
`call [[stdlib_io(module):getfile(function)]] (fileName [, err] [, delete=.false.])`
277277

278278
### Class
279279
Function
@@ -411,8 +411,8 @@ program example_delete_file
411411
! Delete a file with error handling
412412
call delete_file("example.txt", err)
413413
414-
if (err%is_error) then
415-
print *, "Failed to delete file:", err%message
414+
if (err%error()) then
415+
print *, "Failed to delete file:", err%print()
416416
else
417417
print *, "File deleted successfully."
418418
end if

0 commit comments

Comments
 (0)