tracks/delphi/exercises/two-fer/utwoferExample.pas in trackler-2.2.1.20 vs tracks/delphi/exercises/two-fer/utwoferExample.pas in trackler-2.2.1.21
- old
+ new
@@ -1,17 +1,14 @@
unit utwofer;
interface
- function twoFer(aName: string=''): string;
+ function twoFer(aName: string='you'): string;
implementation
-uses SysUtils;
-function twoFer(aName: string=''): string;
+function twoFer(aName: string='you'): string;
begin
- if trim(aName).IsEmpty then
- aName := 'you';
result := 'One for ' + aName + ', one for me.';
end;
end.