From c6105ce84a1133c78edf0754860109a9832abfb9 Mon Sep 17 00:00:00 2001 From: Yann LE GOFF <34318678+Nyan11@users.noreply.github.com> Date: Tue, 21 May 2024 18:07:01 +0200 Subject: [PATCH] Update widgets.md Typos --- Chapters/bloc/widgets.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapters/bloc/widgets.md b/Chapters/bloc/widgets.md index e3370bf..f8ad922 100644 --- a/Chapters/bloc/widgets.md +++ b/Chapters/bloc/widgets.md @@ -32,7 +32,7 @@ We start by defining a new class called `BlIntegerInputElement` with an attribut ``` BlElement << #BlIntegerInputElement - slots: { #plus . #minus . #inputValue . #value . #inputLabel . #blockCallback }; + slots: { #plus . #minus . #inputValue . #value . #inputLabel . #callbackBlock }; tag: 'Input'; package: 'ABlocPackage' ``` @@ -300,7 +300,7 @@ First we initialize the callback block. ``` BlIntegerInputElement >> initializeInputValue: aValue - callbackBlock: [ :newInputValue | ]. + callbackBlock := [ :newInputValue | ]. inputValue := BlTextElement new. inputValue constraintsDo: [ :c | c frame horizontal alignCenter.