Skip to content

Commit 039178f

Browse files
committed
Fix the invalidate feature name message
Signed-off-by: hi-rustin <[email protected]>
1 parent 4270265 commit 039178f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/summary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ fn validate_feature_name(pkg_id: PackageId, name: &str) -> CargoResult<()> {
448448
if !(unicode_xid::UnicodeXID::is_xid_continue(ch) || ch == '-' || ch == '+' || ch == '.') {
449449
bail!(
450450
"invalid character `{}` in feature `{}` in package {}, \
451-
characters must be Unicode XID characters, `+`, or `.` \
451+
characters must be Unicode XID characters, '-', `+`, or `.` \
452452
(numbers, `+`, `-`, `_`, `.`, or most letters)",
453453
ch,
454454
name,

0 commit comments

Comments
 (0)