Skip to content

Commit a56f7af

Browse files
Update generic-classes.md
comment response
1 parent 193392e commit a56f7af

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 simply an empty list.
34+
`Nil` here is an empty `List` and is not to be confused with `Null`.
3535

3636
## Usage
3737

0 commit comments

Comments
 (0)