diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-01-13 13:40:12 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-01-13 13:40:12 -0800 |
commit | af75be6034b7949858be89f27520dabeef9a5283 (patch) | |
tree | ec02328888b42a794215bb4fc539a3ce911f538a /src/library | |
parent | 8bc8603e333c730b00fc306899ece643ad892fbe (diff) | |
download | scala-af75be6034b7949858be89f27520dabeef9a5283.tar.gz scala-af75be6034b7949858be89f27520dabeef9a5283.tar.bz2 scala-af75be6034b7949858be89f27520dabeef9a5283.zip |
SI-7544 StringContext.f docs update
Correct the scaladoc to reflect how f"%" is handled,
namely, it's no longer taken as f"%%".
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/StringContext.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala index 70f95750da..2d79452c5d 100644 --- a/src/library/scala/StringContext.scala +++ b/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` |