diff --git a/packages/flutter/lib/src/painting/text_painter.dart b/packages/flutter/lib/src/painting/text_painter.dart index 799b8e8a10..e0baa54b41 100644 --- a/packages/flutter/lib/src/painting/text_painter.dart +++ b/packages/flutter/lib/src/painting/text_painter.dart @@ -914,7 +914,7 @@ class TextPainter { /// Returns the text range of the line at the given offset. /// - /// The newline, if any, is included in the range. + /// The newline (if any) is not returned as part of the range. TextRange getLineBoundary(TextPosition position) { assert(!_needsLayout); return _paragraph!.getLineBoundary(position);