Skip to content

Commit

Permalink
Fix docs errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dcreager committed Feb 3, 2025
1 parent 0519b8a commit b4eb067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ impl<'db> SemanticIndexBuilder<'db> {
self.current_use_def_map_mut().mark_unreachable();
}

/// Records a [`VisibilityConstraint::Ambiguous`] constraint.
/// Records a visibility constraint that always evaluates to "ambiguous".
fn record_ambiguous_visibility(&mut self) {
self.current_use_def_map_mut()
.record_visibility_constraint(ScopedVisibilityConstraintId::AMBIGUOUS);
Expand Down
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/semantic_index/use_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub(crate) struct UseDefMap<'db> {
/// Array of [`Constraint`] in this scope.
all_constraints: AllConstraints<'db>,

/// Array of [`VisibilityConstraint`]s in this scope.
/// Array of visibility constraints in this scope.
visibility_constraints: VisibilityConstraints<'db>,

/// [`SymbolBindings`] reaching a [`ScopedUseId`].
Expand Down Expand Up @@ -489,7 +489,7 @@ pub(super) struct UseDefMapBuilder<'db> {
/// Append-only array of [`Constraint`].
all_constraints: AllConstraints<'db>,

/// Append-only array of [`VisibilityConstraint`].
/// Builder of visibility constraints.
pub(super) visibility_constraints: VisibilityConstraintsBuilder<'db>,

/// A constraint which describes the visibility of the unbound/undeclared state, i.e.
Expand Down

0 comments on commit b4eb067

Please sign in to comment.