Commit 79cabaa
maps: make Clone preserve nil map
The x/exp/maps.Clone function doesn't preserve nil
the way x/exp/slices.Clone does, but it should be.
Fixes golang/go#53817
Change-Id: Ib1867fb6e31d990d8b8a846e9dba8a5b6ba83c48
Reviewed-on: https://go-review.googlesource.com/c/exp/+/417274
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>1 parent b4a6d95 commit 79cabaa
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
145 | 153 | | |
146 | 154 | | |
147 | 155 | | |
| |||
0 commit comments