tweak get_source_text_between comment

This commit is contained in:
Jason Merrill 2022-11-04 13:05:06 -04:00
parent a01c9dfe60
commit df3709d167

View File

@ -949,8 +949,9 @@ location_get_source_line (const char *file_path, int line)
return char_span (buffer, len);
}
/* Return a copy of the source text between two locations. The caller is
responsible for freeing the return value. */
/* Return a NUL-terminated copy of the source text between two locations, or
NULL if the arguments are invalid. The caller is responsible for freeing
the return value. */
char *
get_source_text_between (location_t start, location_t end)