Skip to content

Commit a51071a

Browse files
committed
fix #184
1 parent 11e9dc4 commit a51071a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Accessors"
22
uuid = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
33
authors = ["Takafumi Arakaki <[email protected]>", "Jan Weidner <[email protected]> and contributors"]
4-
version = "0.1.39"
4+
version = "0.1.40"
55

66
[deps]
77
CompositionsBase = "a33af91c-f02d-484b-be07-31d278c5ca2b"

src/sugar.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function get_update_op(sym::Symbol)
280280
msg = "Operation $sym doesn't look like an assignment"
281281
throw(ArgumentError(msg))
282282
end
283-
Symbol(s[1:end-1])
283+
Symbol(chop(s))
284284
end
285285

286286
"""

test/test_core.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ end
4646
@reset nt.a = 5
4747
@test nt === (a=5,)
4848

49+
issue184 = 0x5eb720ca5fd4f4b6
50+
z = 0x82307475878967f2
51+
@test (issue184 z ) === (@set issue184 ⊻= z)
52+
4953
@test_throws Exception eval(:(@reset func(x, y) = 100))
5054
end
5155

0 commit comments

Comments
 (0)