mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: underscore-prefix toStringReadOnly, fix 80-columns violations
Swift SVN r21064
This commit is contained in:
@@ -24,9 +24,14 @@
|
||||
% Types.append('Character')
|
||||
% Types.append('UnicodeScalar')
|
||||
|
||||
% for Type in Types:
|
||||
extension String : StringInterpolationConvertible {
|
||||
public static func convertFromStringInterpolationSegment(expr: ${Type}) -> String { return toStringReadOnly(expr) }
|
||||
% for Type in Types:
|
||||
public static func convertFromStringInterpolationSegment(
|
||||
expr: ${Type}
|
||||
) -> String {
|
||||
return _toStringReadOnly(expr)
|
||||
}
|
||||
% end
|
||||
}
|
||||
|
||||
// ${'Local Variables'}:
|
||||
|
||||
Reference in New Issue
Block a user