From ee34a3b21351e1597fce25b30d2dcd7f9fb6f4c9 Mon Sep 17 00:00:00 2001 From: Gleb Date: Mon, 24 Apr 2023 18:14:11 +0300 Subject: [PATCH] Fix after review --- lib/domain/language_check_service.dart | 2 +- lib/domain/mistake.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/domain/language_check_service.dart b/lib/domain/language_check_service.dart index ac7ee83..ef0db9f 100644 --- a/lib/domain/language_check_service.dart +++ b/lib/domain/language_check_service.dart @@ -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> findMistakes(String text); } diff --git a/lib/domain/mistake.dart b/lib/domain/mistake.dart index b2b4337..4d15317 100644 --- a/lib/domain/mistake.dart +++ b/lib/domain/mistake.dart @@ -1,4 +1,4 @@ -/// 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; @@ -6,13 +6,13 @@ class Mistake { /// 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 replacements;