summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2012-09-28 10:01:57 -0700
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2012-09-28 10:01:57 -0700
commitac311c4f7be3353c8f13396d4c7d21f2c0887005 (patch)
tree0f987889104224f7ae4004c21193d2f7f82b1951
parent6b630ebb57306572e176a646e5bec7f3132ff18e (diff)
parent37f1f04142d9ab899655a7de7c80fac66b4405c7 (diff)
downloadscala-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.
-rw-r--r--src/library/scala/StringContext.scala7
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