Skip to content

Commit baea8c7

Browse files
Update: str_ends_with as pure functions
Co-authored-by: Milan Curcic <[email protected]>
1 parent eb1527c commit baea8c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fpm/src/fpm_strings.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module fpm_strings
2626

2727
contains
2828

29-
logical function str_ends_with_str(s, e) result(r)
29+
pure logical function str_ends_with_str(s, e) result(r)
3030
character(*), intent(in) :: s, e
3131
integer :: n1, n2
3232
n1 = len(s)-len(e)+1
@@ -38,7 +38,7 @@ logical function str_ends_with_str(s, e) result(r)
3838
end if
3939
end function str_ends_with_str
4040

41-
logical function str_ends_with_any(s, e) result(r)
41+
pure logical function str_ends_with_any(s, e) result(r)
4242
character(*), intent(in) :: s
4343
character(*), intent(in) :: e(:)
4444

0 commit comments

Comments
 (0)