mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
improve the doc comment on toInt to be more specific about what it does.
Swift SVN r19577
This commit is contained in:
@@ -189,7 +189,8 @@ extension String {
|
||||
// Conversions from string to other types.
|
||||
extension String {
|
||||
/// If the string represents an integer that fits into an Int, returns
|
||||
/// the corresponding integer.
|
||||
/// the corresponding integer. This accepts strings that match the regular
|
||||
/// expression "[-+]?[0-9]+" only.
|
||||
@public func toInt() -> Int? {
|
||||
var scalars = self.unicodeScalars
|
||||
|
||||
|
||||
Reference in New Issue
Block a user