Skip to content

Commit dc70704

Browse files
author
梶塚太智
committed
Update main.rs
Commented time's processing
1 parent ef17ff8 commit dc70704

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ impl Executor {
796796
self.stack.push(a);
797797
}
798798

799-
// 日付処理
799+
// 時間処理
800800

801801
// 現在時刻を取得
802802
"now-time" => {
@@ -808,6 +808,7 @@ impl Executor {
808808
));
809809
}
810810

811+
// 一定時間スリープ
811812
"sleep" => sleep(Duration::from_secs_f64(self.pop_stack().get_number())),
812813

813814
// コマンドとして認識されない場合は文字列とする

0 commit comments

Comments
 (0)