@@ -759,15 +759,15 @@ final class StringOps(private val s: String) extends AnyVal {
759759
760760 /**
761761 * Try to parse as a `Boolean`
762- * @return `Some(true)` if the string is "true" case insenitive ,
762+ * @return `Some(true)` if the string is "true" case insensitive ,
763763 * `Some(false)` if the string is "false" case insensitive,
764764 * and `None` if the string is anything else
765765 * @throws java.lang.NullPointerException if the string is `null`
766766 */
767767 def toBooleanOption : Option [Boolean ] = StringParsers .parseBool(s)
768768
769769 /**
770- * Parse as a `Byte` (string must contain only decimal digits and optional leading `-`).
770+ * Parse as a `Byte` (string must contain only decimal digits and optional leading `-` or `+` ).
771771 * @throws java.lang.NumberFormatException If the string does not contain a parsable `Byte`.
772772 */
773773 def toByte : Byte = java.lang.Byte .parseByte(s)
@@ -780,7 +780,7 @@ final class StringOps(private val s: String) extends AnyVal {
780780 def toByteOption : Option [Byte ] = StringParsers .parseByte(s)
781781
782782 /**
783- * Parse as a `Short` (string must contain only decimal digits and optional leading `-`).
783+ * Parse as a `Short` (string must contain only decimal digits and optional leading `-` or `+` ).
784784 * @throws java.lang.NumberFormatException If the string does not contain a parsable `Short`.
785785 */
786786 def toShort : Short = java.lang.Short .parseShort(s)
@@ -793,7 +793,7 @@ final class StringOps(private val s: String) extends AnyVal {
793793 def toShortOption : Option [Short ] = StringParsers .parseShort(s)
794794
795795 /**
796- * Parse as an `Int` (string must contain only decimal digits and optional leading `-`).
796+ * Parse as an `Int` (string must contain only decimal digits and optional leading `-` or `+` ).
797797 * @throws java.lang.NumberFormatException If the string does not contain a parsable `Int`.
798798 */
799799 def toInt : Int = java.lang.Integer .parseInt(s)
@@ -806,7 +806,7 @@ final class StringOps(private val s: String) extends AnyVal {
806806 def toIntOption : Option [Int ] = StringParsers .parseInt(s)
807807
808808 /**
809- * Parse as a `Long` (string must contain only decimal digits and optional leading `-`).
809+ * Parse as a `Long` (string must contain only decimal digits and optional leading `-` or `+` ).
810810 * @throws java.lang.NumberFormatException If the string does not contain a parsable `Long`.
811811 */
812812 def toLong : Long = java.lang.Long .parseLong(s)
0 commit comments