Skip to content

Commit 7ed0a1c

Browse files
authored
Update _overviews/scala3-book/fp-pure-functions.md
1 parent 3d34ae7 commit 7ed0a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/scala3-book/fp-pure-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Most methods on the Scala collections classes also work as pure functions, inclu
5151
Conversely, the following functions are _impure_ because they violate the definition.
5252

5353
- `println` -- methods that interact with the console, files, databases, web services, sensors, etc., are all impure.
54-
- `getHour` -- date and time related methods are all impure because their output depends on something other than their input parameters
54+
- `currentTimeMillis ` -- date and time related methods are all impure because their output depends on something other than their input parameters
5555
- `sys.error` -- exception throwing methods are impure because they do not simply return a result
5656

5757
Impure functions often do one or more of these things:

0 commit comments

Comments
 (0)