Skip to content

Commit

Permalink
Documentation fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaros committed Apr 1, 2018
1 parent f6ed5e0 commit c856526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/pl/treksoft/kvision/utils/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ fun isIE11(): Boolean = window.navigator.userAgent.matches("Trident\\/7\\.")
* @return file content
*/
@Suppress("EXPERIMENTAL_FEATURE_WARNING")
suspend fun File.getContent() = suspendCancellableCoroutine<String> { cont ->
suspend fun File.getContent(): String = suspendCancellableCoroutine<String> { cont ->
val reader = FileReader()
reader.onload = {
@Suppress("UnsafeCastFromDynamic")
Expand Down

0 comments on commit c856526

Please sign in to comment.