diff --git a/src/lang/number.js b/src/lang/number.js index 459d9dca6..06f45c32a 100644 --- a/src/lang/number.js +++ b/src/lang/number.js @@ -20,7 +20,7 @@ Object.extend(Number.prototype, (function() { * (which is therefore assumed to be in the \[0..255\] range, inclusive). * Useful for composing CSS color strings. * - *
Example
+ * ##### Example * * 10.toColorPart() * // -> "0a" @@ -32,8 +32,8 @@ Object.extend(Number.prototype, (function() { /** * Number#succ() -> Number * - * Returns the successor of the current Number, as defined by current + 1. - * Used to make numbers compatible with ObjectRange. + * Returns the successor of the current [[Number]], as defined by current + 1. + * Used to make numbers compatible with [[ObjectRange]]. **/ function succ() { return this + 1; @@ -49,7 +49,7 @@ Object.extend(Number.prototype, (function() { * the first parameter. The number will be 0 on first call, 1 on second * call, etc. `times` returns the number instance it was called on. * - *
Example
+ * ##### Example * * (3).times(alert); * // -> Alerts "0", then "1", then "2"; returns 3 @@ -81,7 +81,7 @@ Object.extend(Number.prototype, (function() { * that the string's length is at least equal to `length`. Takes an optional * `radix` argument which specifies the base to use for conversion. * - *
Examples
+ * ##### Examples * * (13).toPaddedString(4); * // -> "0013" diff --git a/src/lang/string.js b/src/lang/string.js index 67e1e27c5..04fde652c 100644 --- a/src/lang/string.js +++ b/src/lang/string.js @@ -3,7 +3,7 @@ * * Extensions to the built-in `String` class. * - * Prototype enhances the `String` object with a series of useful methods for + * Prototype enhances the [[String]] object with a series of useful methods for * ranging from the trivial to the complex. Tired of stripping trailing * whitespace? Try [[String#strip]]. Want to replace `replace`? Have a look at * [[String#sub]] and [[String#gsub]]. Need to parse a query string? We have @@ -243,23 +243,24 @@ Object.extend(String.prototype, (function() { * * Strips a string of any HTML tags. * - * Note that `stripTags` will only strip HTML 4.01 tags — like `div`, - * `span`, and `abbr`. It _will not_ strip namespace-prefixed tags such - * as `h:table` or `xsl:template`. + * Note that [[String#stripTags]] will only strip HTML 4.01 tags — like + * `div`, `span`, and `abbr`. It _will not_ strip namespace-prefixed tags + * such as `h:table` or `xsl:template`. * - * Watch out for `