Skip to content

Commit 193392e

Browse files
Update generic-classes.md
1 parent e23b8da commit 193392e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/generic-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Stack[A] {
3131
```
3232
This implementation of a `Stack` class takes any type `A` as a parameter. This means the underlying list, `var elements: List[A] = Nil`, can only store elements of type `A`. The procedure `def push` only accepts objects of type `A` (note: `elements = x :: elements` reassigns `elements` to a new list created by prepending `x` to the current `elements`).
3333

34-
`Nil` here is a special case of `List` and is not to be confused with `Null`. It is a `List` of zero length.
34+
`Nil` here is a special case of `List` and is not to be confused with `Null`. It is simply an empty list.
3535

3636
## Usage
3737

0 commit comments

Comments
 (0)