Fixing example code

This commit is contained in:
Andrey Breslav
2011-11-12 20:31:06 +04:00
parent c74a0a62cc
commit 2070c2201e
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -56,6 +56,6 @@ namespace io {
namespace string {
fun String.replaceAll(pattern : String, replacement : String) : String {
return java.util.regex.Pattern.compile(pattern).matcher(this).replaceAll(replacement).npe()
return (this as java.lang.String).replace(pattern as CharSequence, replacement as CharSequence).npe()
}
}