Skip to content

Commit bae0556

Browse files
committed
tiny followup fix to #1474
1 parent 661af04 commit bae0556

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
@@ -28,7 +28,7 @@ class Stack[A] {
2828
```
2929
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`).
3030

31-
`Nil` here is an empty `List` and is not to be confused with `Null`.
31+
`Nil` here is an empty `List` and is not to be confused with `null`.
3232

3333
## Usage
3434

0 commit comments

Comments
 (0)