@@ -59,7 +59,7 @@ module stdlib_strings
5959 module procedure :: ends_with_char_char
6060 end interface ends_with
6161
62- ! > Slices the input string to return a new string
62+ ! > Extracts characters from the input string to return a new string
6363 ! >
6464 ! > Version: experimental
6565 interface slice
@@ -299,9 +299,9 @@ elemental function ends_with_string_string(string, substring) result(match)
299299
300300 end function ends_with_string_string
301301
302- ! > Slices the region between the input 'first' and 'last' index (both inclusive)
302+ ! > Extract the characters from the region between 'first' and 'last' index (both inclusive)
303303 ! > of the input 'string' by taking strides of length 'stride'
304- ! > Returns a new string_type object
304+ ! > Returns a new string
305305 elemental function slice_string (string , first , last , stride ) result(sliced_string)
306306 type (string_type), intent (in ) :: string
307307 integer , intent (in ), optional :: first, last, stride
@@ -311,7 +311,7 @@ elemental function slice_string(string, first, last, stride) result(sliced_strin
311311
312312 end function slice_string
313313
314- ! > Slices the region between the input 'first' and 'last' index (both inclusive)
314+ ! > Extract the characters from the region between 'first' and 'last' index (both inclusive)
315315 ! > of the input 'string' by taking strides of length 'stride'
316316 ! > Returns a new string
317317 pure function slice_char (string , first , last , stride ) result(sliced_string)
0 commit comments