Skip to content

Commit c9f6386

Browse files
authored
avoid downstream users to rely on serialization to create a copy of the binding (#600)
1 parent f2f9e5e commit c9f6386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/extending.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In the unlikely case that you've used `@dimension`, you will also need the
4141
following incantation:
4242

4343
```julia
44-
const localpromotion = Unitful.promotion
44+
const localpromotion = copy(Unitful.promotion)
4545
function __init__()
4646
Unitful.register(YourModule)
4747
merge!(Unitful.promotion, localpromotion)

0 commit comments

Comments
 (0)