Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/visibility/getter_and_setters.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class Person {
this.name = name;
}

String getAge() {
int getAge() {
return this.age;
}

void setAge(String age) {
void setAge(int age) {
this.age = age;
}
}
Expand All @@ -40,4 +40,4 @@ class Person {

The answer to that is interesting. We'll get to it, but the short story is that its a bit of a holdover from a very weird period in the early 2000s.

I mention it specifically so that you know that there isn't any important information you are missing and you are not crazy.
I mention it specifically so that you know that there isn't any important information you are missing and you are not crazy.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE[1])
Suggestions: , and
URL: https://languagetool.org/insights/post/types-of-sentences/#compound-sentence
Rule: https://community.languagetool.org/rule/show/COMMA_COMPOUND_SENTENCE?lang=en-US&subId=1
Category: PUNCTUATION

Loading