Skip to content

Commit e5144d1

Browse files
authored
Fix some mistakes in the Solver doc comment. (#1287)
1 parent 0e79680 commit e5144d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/src/back_end/solver.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import 'solution.dart';
1414
/// possible states, so it isn't feasible to brute force. There are a few
1515
/// techniques we use to avoid that:
1616
///
17-
/// - All pieces default to being in state zero. Every piece is implemented
18-
/// such that that state has no line splits and zero cost. Thus, it tries
19-
/// solutions with a minimum number of line splits first.
17+
/// - All pieces default to being in [State.initial]. Every piece is
18+
/// implemented such that that state has no line splits (or only mandatory
19+
/// ones) and zero cost. Thus, it tries solutions with a minimum number of
20+
/// line splits first.
2021
///
2122
/// - Solutions are explored in priority order. We explore solutions with the
22-
/// fewest overflow characters and the lowest cost (in that order) first.
23-
/// This was, as soon as we find a solution with no overflow characters, we
24-
/// know it will be the best solution and can stop.
23+
/// the lowest cost first. This way, as soon as we find a solution with no
24+
/// overflow characters, we know it will be the best solution and can stop.
2525
// TODO(perf): At some point, we probably also want to do memoization of
2626
// previously formatted Piece subtrees.
2727
class Solver {

0 commit comments

Comments
 (0)