Skip to content

Commit

Permalink
Fix after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Luxorum committed Apr 24, 2023
1 parent 97f2fc7 commit ee34a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/domain/language_check_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ abstract class LanguageCheckService {
/// Creates a new instance of the [LanguageCheckService] class.
const LanguageCheckService();

/// Function that finds mistakes in given text.
/// Returns found mistakes in the given [text].
Future<List<Mistake>> findMistakes(String text);
}
8 changes: 4 additions & 4 deletions lib/domain/mistake.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/// A data model classs that stores information about a single writing mistake.
/// A data model class that stores information about a single writing mistake.
class Mistake {
/// A brief description of the mistake.
final String message;

/// A type of this mistake.
final String type;

/// A position of the beginning of the mistake.
/// A position of the beginning of this mistake.
final int offset;

/// Length of the mistake after the offset.
/// Length of this mistake after the offset.
final int length;

/// A list of suggestions for replacing the mistake.
/// A list of suggestions for replacing this mistake.
///
/// Sorted by probability.
final List<String> replacements;
Expand Down

0 comments on commit ee34a3b

Please sign in to comment.