Skip to content

Commit 6f50882

Browse files
authored
Fix typo at line of code
1 parent 7b90bef commit 6f50882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/en/getting-started/2-playground-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ new Vue({
229229
console.log('Task with index: ' + args.index + ' tapped'); // Logs tapped tasks in the console for debugging.
230230
},
231231
onButtonTap() {
232-
if (this.textFieldValue === "") return // Prevent user input empty string
232+
if (this.textFieldValue === "") return; // Prevents users from entering an empty string.
233233
console.log("New task added: " + this.textFieldValue + "."); // Logs the newly added task in the console for debugging.
234234
this.todos.unshift({ name: this.textFieldValue }); // Adds tasks in the ToDo array. Newly added tasks are immediately shown on the screen.
235235
this.textFieldValue = ""; // Clears the text field so that users can start adding new tasks immediately.

0 commit comments

Comments
 (0)