@@ -111,11 +111,11 @@ mode(::AutoFiniteDiff) = ForwardMode()
111
111
function Base. show (io:: IO , backend:: AutoFiniteDiff )
112
112
print (io, AutoFiniteDiff, " (" )
113
113
backend. fdtype != Val (:forward ) &&
114
- print (io, " fdtype=" , repr (backend. fdtype; context = io), " ," )
114
+ print (io, " fdtype=" , repr (backend. fdtype; context = io), " , " )
115
115
backend. fdjtype != backend. fdtype &&
116
- print (io, " fdjtype=" , repr (backend. fdjtype; context = io), " ," )
116
+ print (io, " fdjtype=" , repr (backend. fdjtype; context = io), " , " )
117
117
backend. fdhtype != Val (:hcentral ) &&
118
- print (io, " fdhtype=" , repr (backend. fdhtype; context = io), " , " )
118
+ print (io, " fdhtype=" , repr (backend. fdhtype; context = io))
119
119
print (io, " )" )
120
120
end
121
121
@@ -175,8 +175,9 @@ mode(::AutoForwardDiff) = ForwardMode()
175
175
176
176
function Base. show (io:: IO , backend:: AutoForwardDiff{chunksize} ) where {chunksize}
177
177
print (io, AutoForwardDiff, " (" )
178
- chunksize != = nothing && print (io, " chunksize=" , repr (chunksize; context = io), " ," )
179
- backend. tag != = nothing && print (io, " tag=" , repr (backend. tag; context = io), " ," )
178
+ chunksize != = nothing && print (io, " chunksize=" , repr (chunksize; context = io),
179
+ (backend. tag != = nothing ? " , " : " " ))
180
+ backend. tag != = nothing && print (io, " tag=" , repr (backend. tag; context = io))
180
181
print (io, " )" )
181
182
end
182
183
@@ -211,8 +212,9 @@ mode(::AutoPolyesterForwardDiff) = ForwardMode()
211
212
212
213
function Base. show (io:: IO , backend:: AutoPolyesterForwardDiff{chunksize} ) where {chunksize}
213
214
print (io, AutoPolyesterForwardDiff, " (" )
214
- chunksize != = nothing && print (io, " chunksize=" , repr (chunksize; context = io), " ," )
215
- backend. tag != = nothing && print (io, " tag=" , repr (backend. tag; context = io), " ," )
215
+ chunksize != = nothing && print (io, " chunksize=" , repr (chunksize; context = io),
216
+ (backend. tag != = nothing ? " , " : " " ))
217
+ backend. tag != = nothing && print (io, " tag=" , repr (backend. tag; context = io))
216
218
print (io, " )" )
217
219
end
218
220
0 commit comments