Skip to content

Commit 2e23794

Browse files
authored
Fix typo in callbacks concept (#1832)
1 parent e2283b5 commit 2e23794

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

concepts/callbacks/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function applySideLength(callback) {
1111
}
1212

1313
// Callback must expect the possible argument from the calling function
14-
function squareArea(side) {
14+
function areaOfSquare(side) {
1515
return side * side;
1616
}
1717

concepts/callbacks/introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function applySideLength(callback) {
1313
}
1414

1515
// Callback must expect the possible argument from the calling function
16-
function squareArea(side) {
16+
function areaOfSquare(side) {
1717
return side * side;
1818
}
1919

0 commit comments

Comments
 (0)