Skip to content

Commit 8dd827a

Browse files
authored
Merge pull request nus-cs2103-AY2021S1#77 from xinyee20/Attendance_XY
Change message shown when attendance is marked/unmarked
2 parents dd30c3f + b8fef16 commit 8dd827a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/seedu/address/logic/commands/MarkAttCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
public class MarkAttCommand extends Command {
2020

2121
public static final String COMMAND_WORD = "markatt";
22-
public static final String MESSAGE_SUCCESS = "Attendance marked: \n%1$s - present";
23-
public static final String MESSAGE_ALL_SUCCESS = "Attendance of all students marked!";
22+
public static final String MESSAGE_SUCCESS = "%s: \nAttendance - present";
23+
public static final String MESSAGE_ALL_SUCCESS = "Attendance of all students marked present!";
2424

2525
public static final String MESSAGE_USAGE = COMMAND_WORD
2626
+ ": Marks the attendance of all students / a student in a class. \n"

src/main/java/seedu/address/logic/commands/UnmarkAttCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class UnmarkAttCommand extends Command {
1515

1616
public static final String COMMAND_WORD = "unmarkatt";
17-
public static final String MESSAGE_SUCCESS = "Attendance unmarked: \n%1$s - absent";
17+
public static final String MESSAGE_SUCCESS = "%s: \nAttendance - absent";
1818

1919
public static final String MESSAGE_USAGE = COMMAND_WORD
2020
+ ": Unmarks the attendance of a student in a class. \n"

0 commit comments

Comments
 (0)