From f01881984d82eb4d8bbc8c3aae9b291796f7d426 Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Sun, 9 Mar 2025 13:58:57 -0300 Subject: [PATCH] articles/smalltalk.md: update --- articles/smalltalk.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/articles/smalltalk.md b/articles/smalltalk.md index da7b2a5..ba60fe2 100644 --- a/articles/smalltalk.md +++ b/articles/smalltalk.md @@ -10,7 +10,7 @@ or return an error if it doesn't understand the received message. ```smalltalk "Sends the message `say` to `anObject` with the value `hi`" -anObject say: 'hi' +anObject say: 'hi'. ``` Objects from a hierarchy, where ultimately all objects descend from the same `Object` object. @@ -40,7 +40,8 @@ the `.st` extension for Smalltalk files. ### Hello world Here we send a string to the global `Transcript` object, which will output -the message in the "transcript" window (on a GUI environment) or to stdout for a headless implementation (like GNU Smalltalk). +the message in the "transcript" window (on a GUI environment) or to stdout for a headless implementation (like GNU Smalltalk), +followed by a newline using the `cr` message (also sent to `Transcript`). ```smalltalk Transcript show: 'Hello, world!'; cr. ```