diff options
author | Geoff Liu <cangming.liu@gmail.com> | 2014-11-10 19:46:26 -0700 |
---|---|---|
committer | Geoff Liu <cangming.liu@gmail.com> | 2014-11-10 19:46:26 -0700 |
commit | 45bc0f19a0e52d5ccc58db555cb3823c1a00e973 (patch) | |
tree | 0f3fb9d3a6022f8d77aacf03843a8f38d9b07858 | |
parent | 761f150b4bb0374e71aa16a2323a96a89603aaf7 (diff) |
Minor fix
-rw-r--r-- | scala.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scala.html.markdown b/scala.html.markdown index a0983bdb..6311dba4 100644 --- a/scala.html.markdown +++ b/scala.html.markdown @@ -122,7 +122,7 @@ s"Power of 2: ${math.pow(2, 2)}" // => "Power of 2: 4" // Formatting with interpolated strings with the prefix "f" f"Power of 5: ${math.pow(5, 2)}%1.0f" // "Power of 5: 25" -f"Square root of 122: ${math.sqrt(122)}%1.4f" // "Square root of 122" +f"Square root of 122: ${math.sqrt(122)}%1.4f" // "Square root of 122: 11.0454" // Raw strings, ignoring special characters. raw"New line feed: \n. Carriage return: \r." // => "New line feed: \n. Carriage return: \r." |