Skip to content

Commit 4312230

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

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

doc/specs/stdlib_logger.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -879,28 +879,28 @@ Subroutine
879879
#### Example
880880

881881
```fortran
882-
module example_mod
883-
use stdlib_logger
884-
...
885-
real, allocatable :: a(:)
886-
type(logger_type) :: logger
887-
...
882+
module example_mod
883+
use stdlib_logger
884+
885+
real, allocatable :: a(:)
886+
type(logger_type) :: logger
887+
888888
contains
889-
...
890-
subroutine example_sub( size, stat )
889+
890+
subroutine example_sub( size, stat )
891891
integer, intent(in) :: size
892892
integer, intent(out) :: stat
893893
allocate( a(size) )
894894
if ( stat /= 0 ) then
895-
write( message, '(a, i0)' ) &
895+
write( message, '(a, i0)' ) &
896896
"Allocation of A failed with SIZE = ", size
897-
call logger % log_warning( message, &
897+
call logger % log_warning( message, &
898898
module = 'EXAMPLE_MOD', &
899899
procedure = 'EXAMPLE_SUB' )
900-
end if
901-
end subroutine example_sub
902-
...
903-
end module example_mod
900+
end if
901+
end subroutine example_sub
902+
903+
end module example_mod
904904
```
905905

906906
### `remove_log_unit` - remove `unit` from `self % log_units`

0 commit comments

Comments
 (0)