Fixed #23148 -- Minor tweaks in tutorial code samples