improve the doc comment on toInt to be more specific about what it does.

Swift SVN r19577
This commit is contained in:
Chris Lattner
2014-07-04 21:18:47 +00:00
parent 24ffd63fed
commit 190d4901ae

View File

@@ -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