Skip to content

Commit 3369915

Browse files
armanh3kkahgoh
andauthored
Fix nullability explanation (exercism#2856)
This change fixes the grammar and updates in the nullability concept and related exercise to improve consistency. Co-authored-by: Kah Goh <villastar@yahoo.com.au>
1 parent b7505e4 commit 3369915

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

concepts/nullability/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
In Java, the [`null` literal][null-keyword] is used to denote the absence of a value.
44

5-
[Primitive variables][primitive-data-types] in java all have a default value and therefore can never be `null`.
5+
[Primitive data types][primitive-data-types] in Java all have a default value and therefore can never be `null`.
66
By convention, they start with a lowercase letter e.g `int`.
77

8-
[Reference variables][reference-data-types] contain the memory address of an object and can have a value of null.
9-
These variables usually start with an uppercase e.g `String`.
8+
[Reference types][reference-data-types] contain the memory address of an object and can have a value of `null`.
9+
They generally start with an uppercase letter, e.g. `String`.
1010

1111
Attempting to assign a primitive variable a value of `null` will result in a compile time error as the variable always holds a default value of the type assigned.
1212

concepts/nullability/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
In Java, the `null` literal is used to denote the absence of a value.
44

5-
Primitive data types in java all have a default value and therefore can never be `null`.
5+
Primitive data types in Java all have a default value and therefore can never be `null`.
66
By convention, they start with a lowercase letter e.g `int`.
77

8-
Reference types contain the memory address of an object can have a value of null.
9-
These variables usually start with an uppercase e.g `String`.
8+
Reference types contain the memory address of an object and can have a value of `null`.
9+
They generally start with an uppercase letter, e.g. `String`.
1010

1111
Attempting to assign a primitive variable a value of `null` will result in a compile time error as the variable always holds a primitive value of the type assigned.
1212

exercises/concept/tim-from-marketing/.docs/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
In Java, the `null` literal is used to denote the absence of a value.
66

7-
Primitive data types in java all have a default value and therefore can never be `null`.
7+
Primitive data types in Java all have a default value and therefore can never be `null`.
88
By convention, they start with a lowercase letter e.g `int`.
99

10-
Reference types contain the memory address of an object can have a value of null.
11-
These variables usually start with an uppercase e.g `String`.
10+
Reference types contain the memory address of an object and can have a value of `null`.
11+
They generally start with an uppercase letter, e.g. `String`.
1212

1313
Attempting to assign a primitive variable a value of `null` will result in a compile time error as the variable always holds a primitive value of the type assigned.
1414

0 commit comments

Comments
 (0)