mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fixed some common grammatical errors in the comments. (#38248)
This commit is contained in:
@@ -1383,11 +1383,11 @@ enum class ConstraintSystemFlags {
|
||||
|
||||
/// If set, verbose output is enabled for this constraint system.
|
||||
///
|
||||
/// Note that this flag is automatically applied to all constraint systems
|
||||
/// Note that this flag is automatically applied to all constraint systems,
|
||||
/// when \c DebugConstraintSolver is set in \c TypeCheckerOptions. It can be
|
||||
/// automatically enabled for select constraint solving attempts by setting
|
||||
/// \c DebugConstraintSolverAttempt. Finally, it be automatically enabled
|
||||
/// for a pre-configured set of expressions on line numbers by setting
|
||||
/// \c DebugConstraintSolverAttempt. Finally, it can also be automatically
|
||||
/// enabled for a pre-configured set of expressions on line numbers by setting
|
||||
/// \c DebugConstraintSolverOnLines.
|
||||
DebugConstraints = 0x10,
|
||||
|
||||
@@ -2374,7 +2374,7 @@ private:
|
||||
/// The best solution computed so far.
|
||||
Optional<Score> BestScore;
|
||||
|
||||
/// The number of the solution attempt we're looking at.
|
||||
/// The number of the solution attempts we're looking at.
|
||||
unsigned SolutionAttempt;
|
||||
|
||||
/// Refers to the innermost partial solution scope.
|
||||
@@ -2521,8 +2521,8 @@ private:
|
||||
|
||||
private:
|
||||
/// The list of constraints that have been retired along the
|
||||
/// current path, this list is used in LIFO fashion when constraints
|
||||
/// are added back to the circulation.
|
||||
/// current path, this list is used in LIFO fashion when
|
||||
/// constraints are added back to the circulation.
|
||||
ConstraintList retiredConstraints;
|
||||
|
||||
/// The set of constraints which were active at the time of this state
|
||||
@@ -2821,8 +2821,8 @@ private:
|
||||
/// able to emit an error message, or false if none of the fixits worked out.
|
||||
bool applySolutionFixes(const Solution &solution);
|
||||
|
||||
/// If there is more than one viable solution,
|
||||
/// attempt to pick the best solution and remove all of the rest.
|
||||
/// If there is more than one viable solution, attempt
|
||||
/// to pick the best solution and remove all of the rest.
|
||||
///
|
||||
/// \param solutions The set of solutions to filter.
|
||||
///
|
||||
@@ -2865,7 +2865,7 @@ private:
|
||||
void addKeyPathApplicationRootConstraint(Type root, ConstraintLocatorBuilder locator);
|
||||
|
||||
public:
|
||||
/// Lookup for a member with the given name in the given base type.
|
||||
/// Lookup for a member with the given name which is in the given base type.
|
||||
///
|
||||
/// This routine caches the results of member lookups in the top constraint
|
||||
/// system, to avoid.
|
||||
@@ -3955,7 +3955,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
/// Adjust the constraint system to accomodate the given selected overload, and
|
||||
/// Adjust the constraint system to accommodate the given selected overload, and
|
||||
/// recompute the type of the referenced declaration.
|
||||
///
|
||||
/// \returns a pair containing the adjusted opened type of a reference to
|
||||
|
||||
Reference in New Issue
Block a user