diff --git a/docs/UserGuide.md b/docs/UserGuide.md index 5b45af49550..dce5eb5236c 100644 --- a/docs/UserGuide.md +++ b/docs/UserGuide.md @@ -340,7 +340,7 @@ Most commands given in the user guide utilise various parameters which are also | MIDTERMS | `mt/` | `editgradedtest` | The Score of a MidTerms exam. | | FINALS | `f/` | `editgradedtest` | The Score of a Finals exam. | | PRACTICAL_EXAM | `pe/` | `editgradedtest` | The Score of a Practical exam. | -| ASSIGNMENT | `as/` | `deletecomment` `editcomment` `editgrade` | The Name of an Assignment. | +| ASSIGNMENT | `as/` | `editcomment` `deletecomment` `editgrade` `deletegrade` | The Name of an Assignment. | | GRADE | `g/` | `editgrade` | The Grade of an Assignment. | | COMMENT | `c/` | `editcomment` | The Comment of an Assignment. | | DATE | `d/` | `addtask` `viewtasks` `createconsult` | The Date. | diff --git a/src/main/java/seedu/address/logic/parser/ParserUtil.java b/src/main/java/seedu/address/logic/parser/ParserUtil.java index 6d7bd53a8ea..36b9a8f2c1a 100644 --- a/src/main/java/seedu/address/logic/parser/ParserUtil.java +++ b/src/main/java/seedu/address/logic/parser/ParserUtil.java @@ -244,7 +244,7 @@ public static AttendancePresence parseAttendancePresence(String attendancePresen } /** - * Parses a {@code String taskName} into a {@code TaskName}. + * Parses a {@code String name} into a {@code TaskName}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -259,7 +259,7 @@ public static TaskName parseTaskName(String name) throws ParseException { } /** - * Parses a {@code String taskDescription} into a {@code TaskDescription}. + * Parses a {@code String name} into a {@code TaskDescription}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -378,7 +378,7 @@ public static void validateGradedTestField(String fieldName, String fieldValue) } /** - * Parses {@code Collection gradedTest} into a {@code Set}. + * Parses {@code Collection gradedTests} into a {@code Set}. */ public static Set parseGradedTests(Collection gradedTests) throws ParseException { requireNonNull(gradedTests); @@ -390,7 +390,7 @@ public static Set parseGradedTests(Collection gradedTests) t } /** - * Parses a {@code String readingAssessment} into a {@code readingAssessment}. + * Parses a {@code String name} into a {@code readingAssessment}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -405,7 +405,7 @@ public static ReadingAssessment1 parseReadingAssessment1(String name) throws Par } /** - * Parses a {@code String readingAssessment} into a {@code readingAssessment}. + * Parses a {@code String name} into a {@code readingAssessment}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -420,7 +420,7 @@ public static ReadingAssessment2 parseReadingAssessment2(String name) throws Par } /** - * Parses a {@code String readingAssessment} into a {@code readingAssessment}. + * Parses a {@code String name} into a {@code readingAssessment}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -435,7 +435,7 @@ public static MidTerms parseMidTerms(String name) throws ParseException { } /** - * Parses a {@code String finals} into a {@code finals}. + * Parses a {@code String name} into a {@code finals}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -450,7 +450,7 @@ public static Finals parseFinals(String name) throws ParseException { } /** - * Parses a {@code String practicalExam} into a {@code practicalExam}. + * Parses a {@code String name} into a {@code practicalExam}. * Leading and trailing whitespaces will be trimmed. * * @throws ParseException if the given {@code name} is invalid. @@ -465,7 +465,7 @@ public static PracticalExam parsePracticalExam(String name) throws ParseExceptio } /** - * Parses a {@code String priority} into a {@code TaskPriority}. + * Parses a {@code String name} into a {@code TaskPriority}. * Leading and trailing whitespaces will be trimmed. * String will be uppercase. * @@ -483,7 +483,7 @@ public static TaskPriority parseTaskPriority(String name) throws ParseException } /** - * Parses a {@code String progress} into a {@code TaskProgress}. + * Parses a {@code String name} into a {@code TaskProgress}. * Leading and trailing whitespaces will be trimmed. * String will be uppercase. * @@ -501,7 +501,7 @@ public static TaskProgress parseTaskProgress(String name) throws ParseException } /** - * Parses a {@code String assignmentName} into a {@code AssignmentName}. + * Parses a {@code String name} into a {@code AssignmentName}. * * @throws ParseException if the given {@code name} is invalid. */ diff --git a/src/main/java/seedu/address/model/task/TaskDescription.java b/src/main/java/seedu/address/model/task/TaskDescription.java index 1af82efa718..69b36b8d912 100644 --- a/src/main/java/seedu/address/model/task/TaskDescription.java +++ b/src/main/java/seedu/address/model/task/TaskDescription.java @@ -26,7 +26,7 @@ public TaskDescription(String description) { } /** - * Returns true if a given string is a valid tag name. + * Returns true if a given string is a valid task description. */ public static boolean isValidDescription(String test) { return test.matches(VALIDATION_REGEX);