add variable system + fix bugs here and there.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package gentools
|
||||
|
||||
func CopyMap[K comparable, V any](m map[K]V) map[K]V {
|
||||
m2 := make(map[K]V, len(m))
|
||||
m2 := make(map[K]V, len(m)+1)
|
||||
for k, v := range m {
|
||||
m2[k] = v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user