diff --git a/src/content/learn/pathway/tutorial/user-input.md b/src/content/learn/pathway/tutorial/user-input.md index a4f8984429..afd6f3032b 100644 --- a/src/content/learn/pathway/tutorial/user-input.md +++ b/src/content/learn/pathway/tutorial/user-input.md @@ -67,7 +67,7 @@ It's a good practice for interactive widgets to use callback functions to keep the widget that handles interactions reusable and decoupled from any specific functionality. -By the end of this lesson, the passed-in `onGuessSubmitted` function +By the end of this lesson, the passed-in `onSubmitGuess` function is called when a user enters a guess. First, you'll need to build the visual parts of this widget. This is what the widget will look like. @@ -435,7 +435,7 @@ you can continue typing. Finally, you need to handle the text that the user enters. Recall that the constructor for `GuessInput` requires a -callback called `onGuessSubmitted`. +callback called `onSubmitGuess`. In `GuessInput`, you need to use that callback. Replace the `print` statement with a call to that function.