From 6b3e5aede59f68b141f986ab0605f98861921646 Mon Sep 17 00:00:00 2001
From: saiutkarsh33 <122259179+saiutkarsh33@users.noreply.github.com>
Date: Mon, 8 Apr 2024 16:15:54 +0800
Subject: [PATCH] Fix Course Code bug
---
docs/UserGuide.md | 6 +++---
.../java/seedu/address/logic/commands/SetCourseCommand.java | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/UserGuide.md b/docs/UserGuide.md
index a643163567a..bc7f9960939 100644
--- a/docs/UserGuide.md
+++ b/docs/UserGuide.md
@@ -180,9 +180,9 @@ The quick reference is meant for **fast and reliable** lookup of commands and th
### Name/Rename CS course : `setcrs`
-Names the course in question.
+Sets the course code in question.
-Format: `setcrs COURSE_NAME`
+Format: `setcrs COURSE_code`
Duplicate course are not allowed.
Courses are case-insensitive.
@@ -524,7 +524,7 @@ If you move the application to a secondary screen, and later switch to using onl
| **Mark** | `mark nn/NUSNET_ID wk/WEEK_NUMBER`
e.g., `mark nn/e1234567 wk/3` |
| **Unmark** | `unmark nn/NUSNET_ID wk/WEEK_NUMBER`
e.g., `unmark nn/e1234567 wk/3` |
| **Find** | `find KEYWORD [MORE_KEYWORDS]`
e.g., `find James Jake` |
-| **Set Course** | `setcrs COURSE_NAME` |
+| **Set Course** | `setcrs COURSE_CODE` |
| **List** | `list` |
| **Help** | `help` |
| **Exit** | `exit` |
diff --git a/src/main/java/seedu/address/logic/commands/SetCourseCommand.java b/src/main/java/seedu/address/logic/commands/SetCourseCommand.java
index 2dd3080bbbb..95c97ec3dde 100644
--- a/src/main/java/seedu/address/logic/commands/SetCourseCommand.java
+++ b/src/main/java/seedu/address/logic/commands/SetCourseCommand.java
@@ -23,10 +23,10 @@ public class SetCourseCommand extends Command {
public static final String MESSAGE_USAGE = CommandMessageUsageUtil.generateMessageUsage(
COMMAND_WORD,
- "Sets the course name. ",
+ "Sets the course code. ",
PARAMETER_COURSE_CODE);
- public static final String MESSAGE_SUCCESS = "Successfully updated course name";
+ public static final String MESSAGE_SUCCESS = "Successfully updated course code";
private final Course course;