has -> implements in comments

This commit is contained in:
Bryce Miller 2023-05-26 22:59:11 -04:00
parent c68807bc5a
commit d3f6277ea3
No known key found for this signature in database
GPG key ID: F1E97BF8DF152350
6 changed files with 11 additions and 11 deletions

View file

@ -122,7 +122,7 @@ pub struct NamedVariable {
pub first_seen: Region,
}
/// A type variable bound to an ability, like "a has Hash".
/// A type variable bound to an ability, like "a implements Hash".
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct AbleVariable {
pub variable: Variable,
@ -1040,7 +1040,7 @@ fn can_annotation_help(
Where(_annotation, clauses) => {
debug_assert!(!clauses.is_empty());
// Has clauses are allowed only on the top level of a signature, which we handle elsewhere.
// Implements clauses are allowed only on the top level of a signature, which we handle elsewhere.
env.problem(roc_problem::can::Problem::IllegalImplementsClause {
region: Region::across_all(clauses.iter().map(|clause| &clause.region)),
});