Skip to content

Commit

Permalink
Rephrased the text.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Feb 4, 2025
1 parent 7a6df10 commit a862437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/sema_casts.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ static bool report_cast_error(CastContext *cc, bool may_cast_explicit)
&& type_no_optional(to)->canonical->type_kind == TYPE_DISTINCT)
{
RETURN_CAST_ERROR(expr,
"Implicitly casting %s to %s is not permitted. It's possible to do an explicit cast by placing '(%s)' before the expression. However, usually explicit casts between distinct types are not intended and are not safe.",
"Implicitly casting %s to %s is not permitted. It's possible to do an explicit cast by placing '(%s)' before the expression. However, explicit casts between distinct types are usually not intended and are not safe.",
type_quoted_error_string(type_no_optional(expr->type)),
type_quoted_error_string(to),
type_to_error_string(type_no_optional(to)));
Expand Down

0 comments on commit a862437

Please sign in to comment.