Skip to content

Commit 5e9e040

Browse files
bartchr808rxwei
authored andcommitted
TF-494: Conform Array.DifferentiableView to CustomStringConvertible (#24736)
* Conform DifferentiableView to StringConvertible * Move conformance to separate extension. * Remove un-necessary where requirement.
1 parent 5cd2b00 commit 5e9e040

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/core/Array.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,12 @@ extension Array.DifferentiableView : Equatable where Element : Equatable {
20082008
}
20092009
}
20102010

2011+
extension Array.DifferentiableView : CustomStringConvertible {
2012+
public var description: String {
2013+
return base.description
2014+
}
2015+
}
2016+
20112017
/// Makes `Array.DifferentiableView` additive as the product space.
20122018
///
20132019
/// Note that `Array.DifferentiableView([])` is the zero in the product spaces

0 commit comments

Comments
 (0)