Skip to content

Commit 77ca211

Browse files
committed
chore(analyse): consistent wording
1 parent cd44a09 commit 77ca211

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_function.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ warning: Unused imported value
2626

2727
Hint: You can safely remove it.
2828

29-
warning: Definition of "foo" shadows an imported function
29+
warning: Definition of "foo" shadows an imported value
3030
┌─ /src/warning/wrn.gleam:3:4
3131
3232
3fn foo(x) {
3333
^^^
3434

35-
The imported function could not be used anyway.
36-
Hint: You could remove the imported function.
35+
The imported value could not be used anyway.
36+
Hint: You could remove the imported value.

compiler-core/src/warning.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,9 +1277,9 @@ can already tell whether it will be true or false.",
12771277
}),
12781278
},
12791279
type_::Warning::FunctionDefinitionShadowsImport { location, name } => Diagnostic {
1280-
title: format!("Definition of \"{name}\" shadows an imported function"),
1281-
text: wrap("The imported function could not be used anyway."),
1282-
hint: Some("You could remove the imported function.".into()),
1280+
title: format!("Definition of \"{name}\" shadows an imported value"),
1281+
text: wrap("The imported value could not be used anyway."),
1282+
hint: Some("You could remove the imported value.".into()),
12831283
level: diagnostic::Level::Warning,
12841284
location: Some(Location {
12851285
src: src.clone(),

0 commit comments

Comments
 (0)