Skip to content

Commit 991ff61

Browse files
committed
Remove warning
1 parent d042e87 commit 991ff61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

S32-temporal/DateTime.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,14 @@ dies-ok { ds('2012-12-22T07:02:00+7:') }, 'single digit hour, trailing colon';
258258

259259
{
260260
my $t = time;
261-
1 while time == $t; # loop until the next second
261+
Nil while time == $t; # loop until the next second
262262
$t = time;
263263
my $dt1 = DateTime.new($t);
264264
my $dt2 = DateTime.now.utc; # $dt1 and $dt2 might differ very occasionally
265265
is show-dt($dt1), show-dt($dt2), 'DateTime.now uses current time';
266266

267267
$t = time;
268-
1 while time == $t;
268+
Nil while time == $t;
269269
$t = time;
270270
$dt1 = DateTime.new($t);
271271
$dt2 = DateTime.now(

0 commit comments

Comments
 (0)