stdlib/String: change String.stringByAbbreviatingWithTildeInPath into a

property, to match recent Foundation headers


Swift SVN r20674
This commit is contained in:
Dmitri Hrybenko
2014-07-29 16:08:39 +00:00
parent 98188d1da9
commit 3e32ff188f
2 changed files with 4 additions and 4 deletions

View File

@@ -1147,12 +1147,12 @@ extension String {
return _ns.smallestEncoding
}
// - (NSString *)stringByAbbreviatingWithTildeInPath
// @property NSString *stringByAbbreviatingWithTildeInPath;
/// Returns a new string that replaces the current home
/// directory portion of the current path with a tilde (`~`)
/// character.
public func stringByAbbreviatingWithTildeInPath() -> String {
public var stringByAbbreviatingWithTildeInPath: String {
return _ns.stringByAbbreviatingWithTildeInPath
}