Update wording on pure function definition. (#2556)

I was originally going to put a PR to fix "has not side-effects", but I also re-read this sentence and realized it could be interpreted as saying a pure function returns its parameters, not a deterministic value based on its parameters.
This commit is contained in:
Kyle Smith 2022-03-27 15:29:33 -04:00 committed by GitHub
parent 2209db7b03
commit e1f89a8352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ title: "Pure Components"
## Pure function definition
A function is considered pure when the return values are always identical to passed down parameters. And it has not side-effects.
A function is considered pure when the return values are deterministic given the same parameters, and it has no side-effects.
## Pure components