Skip to content

Commit 0ccac06

Browse files
authored
Merge branch 'master' into compathelper/new_version/2021-11-23-00-44-13-458-02279462266
2 parents da58648 + 3c49949 commit 0ccac06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function validate_inputs(x, y)
178178
if dim(x) != dim(y) # Passes by default if `dim` is not defined
179179
throw(
180180
DimensionMismatch(
181-
"Dimensionality of x ($(dim(x))) not equality to that of y ($(dim(y)))"
181+
"dimensionality of x ($(dim(x))) is not equal to that of y ($(dim(y)))"
182182
),
183183
)
184184
end

test/test_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function check_zygote_type_stability(f, args...; ctx=Zygote.Context())
100100
@inferred f(args...)
101101
@inferred Zygote._pullback(ctx, f, args...)
102102
out, pb = Zygote._pullback(ctx, f, args...)
103-
@inferred pb(out)
103+
@test_throws ErrorException @inferred pb(out)
104104
end
105105

106106
function test_ADs(

0 commit comments

Comments
 (0)