Skip to content

Commit c732ea3

Browse files
authored
fix(cast): correct error message for --ends-with hex parsing (#11549)
1 parent d2d5f35 commit c732ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/cast/src/cmd/create2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl Create2Args {
154154
if let Some(suffix) = ends_with {
155155
regexs.push(format!(
156156
r"{}$",
157-
get_regex_hex_string(suffix).wrap_err("invalid prefix hex provided")?
157+
get_regex_hex_string(suffix).wrap_err("invalid suffix hex provided")?
158158
))
159159
}
160160

0 commit comments

Comments
 (0)