From 0c145d8fca94c7b76e49fba7e704149fad8c4bf5 Mon Sep 17 00:00:00 2001 From: Valekh Bayramov Date: Sat, 23 Sep 2023 23:22:22 +0300 Subject: [PATCH] fix(docs): relaced async function with fetch --- docs/errors/E0714.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/errors/E0714.md b/docs/errors/E0714.md index 4240e7f7ac..a63a9679c3 100644 --- a/docs/errors/E0714.md +++ b/docs/errors/E0714.md @@ -51,14 +51,11 @@ class C { } async getValueAsync() { - // Perform asynchronous operations here - return await asyncFuctnion(); + return await fetch(this._value); } async setValueAsync(newValue) { - // Perform asynchronous operations here - await asyncFuctnion(); - this._value = newValue; + this._value = await fetch(newValue); } } ``` \ No newline at end of file