Skip to content

Commit b0b5468

Browse files
authored
Fix typo
1 parent 28f3e44 commit b0b5468

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Serialization/Serialization.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,11 +2489,11 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
24892489

24902490
auto *storage = dyn_cast<AbstractStorageDecl>(value);
24912491
auto access = value->getFormalAccess();
2492-
// Emit the private descriminator for private decls.
2492+
// Emit the private discriminator for private decls.
24932493
// FIXME: We shouldn't need to encode this for /all/ private decls.
24942494
// In theory we can follow the same rules as mangling and only include
24952495
// the outermost private context.
2496-
bool shouldEmitPrivateDescriminator =
2496+
bool shouldEmitPrivateDiscriminator =
24972497
access <= swift::AccessLevel::FilePrivate &&
24982498
!value->getDeclContext()->isLocalContext();
24992499

@@ -2507,10 +2507,10 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
25072507
storage->getFormalAccess() >= swift::AccessLevel::Internal &&
25082508
storage->hasPrivateAccessor()));
25092509

2510-
if (shouldEmitFilenameForPrivate || shouldEmitPrivateDescriminator) {
2510+
if (shouldEmitFilenameForPrivate || shouldEmitPrivateDiscriminator) {
25112511
auto topLevelContext = value->getDeclContext()->getModuleScopeContext();
25122512
if (auto *enclosingFile = dyn_cast<FileUnit>(topLevelContext)) {
2513-
if (shouldEmitPrivateDescriminator) {
2513+
if (shouldEmitPrivateDiscriminator) {
25142514
Identifier discriminator =
25152515
enclosingFile->getDiscriminatorForPrivateValue(value);
25162516
unsigned abbrCode =

0 commit comments

Comments
 (0)