Skip to content

Commit b00fcdc

Browse files
committed
Update comments
1 parent fc420d0 commit b00fcdc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/swift/AST/ASTContext.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class ASTContext final {
347347
/// Cache of module names that fail the 'canImport' test in this context.
348348
mutable llvm::SmallPtrSet<Identifier, 8> FailedModuleImportNames;
349349

350-
/// Mapping between aliases and underlying names of modules imported or referenced modules.
350+
/// Mapping between aliases and real (physical) names of imported or referenced modules.
351351
mutable llvm::DenseMap<Identifier, Identifier> ModuleAliasMap;
352352

353353
/// Retrieve the allocator for the given arena.
@@ -474,13 +474,13 @@ class ASTContext final {
474474
/// specified string.
475475
Identifier getIdentifier(StringRef Str) const;
476476

477-
/// Convert a given alias map to a map of Identifiers between module aliases and underlying names.
477+
/// Convert a given alias map to a map of Identifiers between module aliases and their actual names.
478478
/// For example, if '-module-alias A=X -module-alias B=Y' input is passed in, the aliases A and B are
479479
/// the names of the imported or referenced modules in source files in the main module, and X and Y
480-
/// are the underlying (physical) module names on disk.
480+
/// are the real (physical) module names on disk.
481481
void setModuleAliases(const llvm::StringMap<StringRef> &aliasMap);
482482

483-
/// Retrieve the underlying name given an alias name key.
483+
/// Retrieve the actual module name given a module alias name key.
484484
Identifier lookupModuleAlias(Identifier key) const;
485485

486486
/// Decide how to interpret two precedence groups.

include/swift/AST/Module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class ModuleDecl
171171
/// The ABI name of the module, if it differs from the module name.
172172
mutable Identifier ModuleABIName;
173173

174-
/// The underlying name for an alias used for this module (if any).
174+
/// The actual module name for an alias used for this module (if any).
175175
mutable Identifier ModuleRealName;
176176

177177
public:

0 commit comments

Comments
 (0)