Skip to content

Commit 937fac2

Browse files
committed
corrected a typo
1 parent 1468fb6 commit 937fac2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stdlib_stringlist_type.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ function pop_idx_impl( list, idx )
812812

813813
call pop_engine( list, idx, idx, popped_strings )
814814

815-
if ( size(popped_strings) > 0 ) then
815+
if ( size(popped_strings) == 1 ) then
816816
pop_idx_impl = popped_strings(1)
817817
end if
818818

@@ -852,12 +852,12 @@ end subroutine drop_idx_impl
852852
!> Removes strings present at stringlist_indexes in interval ['first', 'last']
853853
!> in stringlist 'list'
854854
!> Doesn't return removed strings
855-
subroutine drop_idx_impl( list, first, last)
855+
subroutine drop_range_idx_impl( list, first, last)
856856
class(stringlist_type) :: list
857857
type(stringlist_index_type), intent(in) :: first, last
858858

859859
call pop_engine( list, first, last )
860860

861-
end subroutine drop_idx_impl
861+
end subroutine drop_range_idx_impl
862862

863863
end module stdlib_stringlist_type

0 commit comments

Comments
 (0)