Skip to content

Commit 30573ca

Browse files
milancurcicjvdp1
andauthored
Update doc/specs/stdlib_logger.md
Co-authored-by: Jeremie Vandenplas <jeremie.vandenplas@gmail.com>
1 parent 3874e87 commit 30573ca

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

doc/specs/stdlib_logger.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -442,32 +442,32 @@ Subroutine
442442
#### Example
443443

444444
```fortran
445-
module example_mod
446-
use stdlib_logger
447-
...
448-
real, allocatable :: a(:)
449-
...
450-
type(logger_type) :: logger
451-
...
445+
module example_mod
446+
use stdlib_logger
447+
448+
real, allocatable :: a(:)
449+
450+
type(logger_type) :: logger
451+
452452
contains
453-
...
454-
subroutine example_sub( size )
453+
454+
subroutine example_sub( size)
455455
integer, intent(in) :: size
456456
character(128) :: errmsg, message
457457
integer :: stat
458458
allocate( a(size), stat=stat, errmsg=errmsg )
459459
if ( stat /= 0 ) then
460-
write( message, '(a, i0)' ) &
461-
"Allocation of A failed with SIZE = ", size
462-
call logger % log_error( message, &
460+
write( message, '(a, i0)' ) &
461+
"Allocation of A failed with SIZE = ", size
462+
call logger % log_error( message, &
463463
module = 'EXAMPLE_MOD', &
464464
procedure = 'EXAMPLE_SUB', &
465465
stat = stat, &
466466
errmsg = errmsg )
467-
end if
468-
end subroutine example_sub
469-
...
470-
end module example_mod
467+
end if
468+
end subroutine example_sub
469+
470+
end module example_mod
471471
```
472472

473473
### `log_information` - Writes the string `message` to `self % log_units`

0 commit comments

Comments
 (0)