Skip to content

Commit d0cc544

Browse files
vsemozhetbytbevacqua
authored andcommitted
ch02: fix possible typo in destructuring use case (#56)
1 parent 6eb381c commit d0cc544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch02.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ console.log(random({ max: 24 }))
745745
// <- 18
746746
----
747747

748-
Regular ((("assignment destructuring", "function parameters", startref="ad2fpd")))((("destructuring", "function parameters", startref="d2fpd")))((("function parameters", startref="fpd2")))expressions are another great fit for destructuring. Destructuring empowers you to name groups from a match without having to resort to index numbers. Here's an example `RegExp` that could be used for parsing simple dates, and an example of destructuring those dates into each of their components. The first entry in the resulting array is reserved for the raw input string, and we can discard it.
748+
Regular ((("assignment destructuring", "function parameters", startref="ad2fpd")))((("destructuring", "function parameters", startref="d2fpd")))((("function parameters", startref="fpd2")))expressions are another great fit for destructuring. Destructuring empowers you to name groups from a match without having to resort to index numbers. Here's an example `RegExp` that could be used for parsing simple dates, and an example of destructuring those dates into each of their components. The first entry in the resulting array is reserved for the full matched text, and we can discard it.
749749

750750
[source,javascript]
751751
----

0 commit comments

Comments
 (0)