AudioBuffer::applyGainRamp documentation bug?

Hi, the docs for applyGainRamp say, “The gain that is applied to each sample will vary from
startGain on the first sample to endGain on the last Sample

But the endGain doesn’t appear to be set for the last sample. I found a justification for this behaviour in the following post.

If this is indeed the intended behaviour then it would be great to have the doc updated to reflect it.