Skip to content
Browse files

SI-7544 StringContext.f docs update

Correct the scaladoc to reflect how f"%" is handled,
namely, it's no longer taken as f"%%".
  • Loading branch information...
1 parent 8bc8603 commit af75be6034b7949858be89f27520dabeef9a5283 @som-snytt som-snytt committed Jan 13, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/library/scala/StringContext.scala
View
5 src/library/scala/StringContext.scala
@@ -157,9 +157,8 @@ case class StringContext(parts: String*) {
* If a formatting position does not refer to a `%` character (which is assumed to
* start a format specifier), then the string format specifier `%s` is inserted.
*
- * 2. Any `%` characters not in formatting positions are left in the resulting
- * string literally. This is achieved by replacing each such occurrence by the
- * format specifier `%%`.
+ * 2. Any `%` characters not in formatting positions must begin one of the conversions
+ * `%%` (the literal percent) or `%n` (the platform-specific line separator).
*/
// The implementation is hardwired to `scala.tools.reflect.MacroImplementations.macro_StringInterpolation_f`
// Using the mechanism implemented in `scala.tools.reflect.FastTrack`

0 comments on commit af75be6

Please sign in to comment.
Something went wrong with that request. Please try again.