Skip to content

Commit ec245a5

Browse files
committed
Use correct inequality operator
1 parent b180daf commit ec245a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcl/programs/reverse.pcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ program reverse;
33
function strlen (var s : array of char) : integer;
44
begin
55
result := 0;
6-
while s[result] != '\0' do result := result + 1
6+
while s[result] <> '\0' do result := result + 1
77
end;
88

99
var r : array [32] of char;

0 commit comments

Comments
 (0)