-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify conversions from slice to array (#5818)
Go 1.17 introduced an expression for convertion from slice to array, so codes can be simplified. Ref: https://tip.golang.org/ref/spec#Conversions_from_slice_to_array_or_array_pointer > Converting a slice to an array yields an array containing the elements of the underlying array of the slice.
- Loading branch information
1 parent
38b9734
commit a7e83aa
Showing
1 changed file
with
10 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters