Skip to content

Commit 8b84d16

Browse files
author
梶塚太智
committed
リファクタリング:変数名を修正
1 parent 8dbfe10 commit 8b84d16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ impl Executor {
511511

512512
// 正規表現で検索
513513
"regex" => {
514-
let pt = self.pop_stack().get_string();
515-
let patern: Regex = match Regex::new(pt.as_str()) {
514+
let patern = self.pop_stack().get_string();
515+
let patern: Regex = match Regex::new(patern.as_str()) {
516516
Ok(i) => i,
517517
Err(_) => {
518518
self.log_print("エラー! 正規表現が不正です\n".to_string());

0 commit comments

Comments
 (0)