diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-28 10:01:57 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2012-09-28 10:01:57 -0700 |
commit | ac311c4f7be3353c8f13396d4c7d21f2c0887005 (patch) | |
tree | 0f987889104224f7ae4004c21193d2f7f82b1951 /src/library | |
parent | 6b630ebb57306572e176a646e5bec7f3132ff18e (diff) | |
parent | 37f1f04142d9ab899655a7de7c80fac66b4405c7 (diff) | |
download | scala-ac311c4f7be3353c8f13396d4c7d21f2c0887005.tar.gz scala-ac311c4f7be3353c8f13396d4c7d21f2c0887005.tar.bz2 scala-ac311c4f7be3353c8f13396d4c7d21f2c0887005.zip |
Merge pull request #1416 from jsuereth/fix/string-context-scaladoc
add a bit about unicode to scaladoc.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/StringContext.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala index 17c1d0d2ba..d9f41f6002 100644 --- a/src/library/scala/StringContext.scala +++ b/src/library/scala/StringContext.scala @@ -97,6 +97,13 @@ case class StringContext(parts: String*) { * * For example, the raw processed string `raw"a\nb"` is equal to the scala string `"a\\nb"`. * + * ''Note:'' Even when using the raw interpolator, Scala will preprocess unicode escapes. + * For example: + * {{{ + * scala> raw"\u0123" + * res0: String = ģ + * }}} + * * @param `args` The arguments to be inserted into the resulting string. * @throws An `IllegalArgumentException` * if the number of `parts` in the enclosing `StringContext` does not exceed |