Minor doc fix.
This commit is contained in:
parent
e816b93419
commit
33e509659d
|
@ -626,7 +626,7 @@ size_t endOfLastUTFSequence(C)(const C[] buffer)
|
|||
{
|
||||
// If stride goes beyond end of the buffer, return end.
|
||||
// Otherwise the last sequence ends at buffer.length, so we can
|
||||
// return that. (Unless there is an invalid code point, which is
|
||||
// return that. (Unless there is an invalid code unit, which is
|
||||
// caught at decoding)
|
||||
return (stride > buffer.length - end) ? cast(size_t)end : buffer.length;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue