Skip to content

Commit 50f546b

Browse files
committed
docs(create-with-equality-fn.md): fix typos in event handler type definitions
1 parent 524a7b5 commit 50f546b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/apis/create-with-equality-fn.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ const usePersonStore = createWithEqualityFn<PersonStore>()(
558558
lastName: 'Hepworth',
559559
560560
},
561-
setPerson: (person) => set({ person }),
561+
setPerson: (nextPerson) => set({ person: nextPerson })
562562
}),
563563
shallow,
564564
)
@@ -567,15 +567,15 @@ export default function Form() {
567567
const person = usePersonStore((state) => state.person)
568568
const setPerson = usePersonStore((state) => state.setPerson)
569569

570-
function handleFirstNameChange(e: ChangeEvent<HTLMInputElement>) {
570+
function handleFirstNameChange(e: ChangeEvent<HTMLInputElement>) {
571571
setPerson({ ...person, firstName: e.target.value })
572572
}
573573

574-
function handleLastNameChange(e: ChangeEvent<HTLMInputElement>) {
574+
function handleLastNameChange(e: ChangeEvent<HTMLInputElement>) {
575575
setPerson({ ...person, lastName: e.target.value })
576576
}
577577

578-
function handleEmailChange(e: ChangeEvent<HTLMInputElement>) {
578+
function handleEmailChange(e: ChangeEvent<HTMLInputElement>) {
579579
setPerson({ ...person, email: e.target.value })
580580
}
581581

docs/apis/shallow.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ shallow(booleanLeft, booleanRight) // -> true
7878
const bigIntLeft = 1n
7979
const bigIntRight = 1n
8080

81-
Object.is(bigInLeft, bigInRight) // -> true
82-
shallow(bigInLeft, bigInRight) // -> true
81+
Object.is(bigIntLeft, bigIntRight) // -> true
82+
shallow(bigIntLeft, bigIntRight) // -> true
8383
```
8484

8585
### Comparing Objects

0 commit comments

Comments
 (0)