Skip to content

Commit

Permalink
Fix spelling error ellipse -> ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
natebosch committed Jan 14, 2025
1 parent fbb06f0 commit 2104b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/checks/lib/src/describe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ Iterable<String> _prettyPrint(
Iterable<String> _prettyPrintCollection(
String open, String close, List<Iterable<String>> elements, int maxLength) {
if (elements.length > _maxItems) {
const ellipseElement = [
const ellipsisElement = [
['...']
];
elements.replaceRange(_maxItems - 1, elements.length, ellipseElement);
elements.replaceRange(_maxItems - 1, elements.length, ellipsisElement);
}
if (elements.every((e) => e.length == 1)) {
final singleLine = '$open${elements.map((e) => e.single).join(', ')}$close';
Expand Down

0 comments on commit 2104b7d

Please sign in to comment.