Skip to content

Commit d3de2a2

Browse files
committed
comments from milan
1 parent af02310 commit d3de2a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_experimental_error.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Checks the value of a logical condition.
1818

1919
`condition`: Shall be a scalar of type `logical`.
2020

21-
`msg` (optional): Shall be a character expression containing the message to be printed to `stderr`. The default `msg` is 'Check failed'.
21+
`msg` (optional): Shall be a character expression containing the message to be printed to `stderr`. The default `msg` is 'Check failed.'.
2222

2323
`code` (optional): Shall be a scalar of type `integer`. The default `code` is `1`.
2424

@@ -101,6 +101,6 @@ Aborts the program with printing the message `msg` to `stderr` and a nonzero exi
101101
program demo_error_stop
102102
use stdlib_experimental_error, only: error_stop
103103
implicit none
104-
call error_stop("Invalid argument")
104+
call error_stop("Invalid argument", code = 123)
105105
end program demo_error_stop
106106
```

0 commit comments

Comments
 (0)