Skip to content

Commit

Permalink
refactor: Update README.md (#7)
Browse files Browse the repository at this point in the history
* Update README.md

You are changed readonly property on `updateTitle` method

* Update README.md
  • Loading branch information
rjurado01 authored Feb 10, 2023
1 parent b3e5364 commit 3be4da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { CourseId } from "./CourseId";
import { CourseTitle } from "./CourseTitle";

export class Course {
constructor(readonly courseId: CourseId, readonly courseTitle: CourseTitle) {}
constructor(public courseId: CourseId, public courseTitle: CourseTitle) {}

updateTitle(newCourseTitle: CourseTitle): void {
this.courseTitle = newCourseTitle;
Expand Down Expand Up @@ -65,7 +65,7 @@ import { CourseId } from "./CourseId";
import { CourseTitle } from "./CourseTitle";

export class Course {
constructor(readonly courseId: CourseId, readonly courseTitle: CourseTitle) {}
constructor(public courseId: CourseId, public courseTitle: CourseTitle) {}

updateTitle(newCourseTitle: CourseTitle): void {
this.courseTitle = newCourseTitle;
Expand Down

0 comments on commit 3be4da4

Please sign in to comment.