Skip to content

Commit ea1a9bb

Browse files
committed
corrected a typo
1 parent 4bfe3cf commit ea1a9bb

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
@@ -808,7 +808,7 @@ function pop_idx_impl( list, idx )
808808

809809
call pop_engine( list, idx, idx, popped_strings )
810810

811-
if ( size(popped_strings) > 0 ) then
811+
if ( size(popped_strings) == 1 ) then
812812
pop_idx_impl = popped_strings(1)
813813
end if
814814

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

855855
call pop_engine( list, first, last )
856856

857-
end subroutine drop_idx_impl
857+
end subroutine drop_range_idx_impl
858858

859859
end module stdlib_stringlist_type

0 commit comments

Comments
 (0)