Skip to content

Commit e4cbc79

Browse files
NathanBaulchcopybara-github
authored andcommitted
Fix minor typos (protocolbuffers#17682)
Just thought I'd contribute some typo fixes that keep tripping up CI/CD checks in my projects. Nothing controversial (hopefully), just 174 simple fixes. Use the following command to get a quick and dirty summary of the specific corrections made: ```shell git diff HEAD^! --word-diff-regex='\w+' -U0 \ | grep -E '\[\-.*\-\]\{\+.*\+\}' \ | sed -r 's/.*\[\-(.*)\-\]\{\+(.*)\+\}.*/\1 \2/' \ | sort | uniq -c | sort -n ``` FWIW, the top typos are: * trimed → trimmed (37) * substract → subtract (7) * qualifed → qualified (7) * extesion → extension (6) * mising → missing (5) * btye → byte (4) * likey → likely (4) * candicate → candidate (3) * decriptor → descriptor (3) * inherting → inheriting (3) * colletion → collection (3) * caluclated → calculated (3) * unititialized → uninitialized (3) * implemting → implementing (3) * binrary → binary (3) * descripor → descriptor (3) * negitive → negative (3) Closes protocolbuffers#17682 COPYBARA_INTEGRATE_REVIEW=protocolbuffers#17682 from NathanBaulch:typos d41762d PiperOrigin-RevId: 677074418
1 parent d829ca0 commit e4cbc79

File tree

81 files changed

+167
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+167
-167
lines changed

WORKSPACE.bzlmod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ruby_runtime("system_ruby")
2121

2222
register_toolchains("@system_ruby//:toolchain")
2323

24-
# Follwing are just needed to run conformance tests, not really needed to support them via MODULE.bazel
24+
# Following are just needed to run conformance tests, not really needed to support them via MODULE.bazel
2525

2626
# For testing runtime against old gencode from a previous major version.
2727
http_archive(

bazel/private/upb_proto_library_internal/aspect.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def upb_proto_aspect_impl(
214214
`cc_info` field. The aspect will ensure that each compilation action can compile and link
215215
against this provider's cc_info for all proto_library() deps.
216216
dep_cc_provider: For aspects that depend on other aspects, this is the provider of the aspect
217-
that we depend on. The aspect wil be able to include the header files from this provider.
217+
that we depend on. The aspect will be able to include the header files from this provider.
218218
file_provider: A provider that this aspect will attach to the target to expose the source
219219
files generated by this aspect. These files are primarily useful for returning in
220220
DefaultInfo(), so users who build the upb_*proto_library() rule directly can view the

conformance/ConformanceJava.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private void writeLittleEndianIntToStdout(int val) throws Exception {
7070
}
7171

7272
private enum BinaryDecoderType {
73-
BTYE_STRING_DECODER,
73+
BYTE_STRING_DECODER,
7474
BYTE_ARRAY_DECODER,
7575
ARRAY_BYTE_BUFFER_DECODER,
7676
READONLY_ARRAY_BYTE_BUFFER_DECODER,
@@ -84,7 +84,7 @@ public T decode(
8484
ByteString bytes, BinaryDecoderType type, Parser<T> parser, ExtensionRegistry extensions)
8585
throws InvalidProtocolBufferException {
8686
switch (type) {
87-
case BTYE_STRING_DECODER:
87+
case BYTE_STRING_DECODER:
8888
case BYTE_ARRAY_DECODER:
8989
return parser.parseFrom(bytes, extensions);
9090
case ARRAY_BYTE_BUFFER_DECODER:

conformance/ConformanceJavaLite.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private void writeLittleEndianIntToStdout(int val) throws Exception {
6767
}
6868

6969
private enum BinaryDecoderType {
70-
BTYE_STRING_DECODER,
70+
BYTE_STRING_DECODER,
7171
BYTE_ARRAY_DECODER,
7272
ARRAY_BYTE_BUFFER_DECODER,
7373
READONLY_ARRAY_BYTE_BUFFER_DECODER,
@@ -84,7 +84,7 @@ public T decode(
8484
ExtensionRegistryLite extensions)
8585
throws InvalidProtocolBufferException {
8686
switch (type) {
87-
case BTYE_STRING_DECODER:
87+
case BYTE_STRING_DECODER:
8888
case BYTE_ARRAY_DECODER:
8989
return parser.parseFrom(bytes, extensions);
9090
case ARRAY_BYTE_BUFFER_DECODER:

conformance/conformance_test_runner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ void UsageError() {
157157
" output files.\n\n");
158158
fprintf(stderr, " --test <test_name> Only run\n");
159159
fprintf(stderr,
160-
" the specified test. Mulitple tests\n"
160+
" the specified test. Multiple tests\n"
161161
" can be specified by repeating the \n"
162162
" flag.\n\n");
163163
fprintf(stderr,

csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/DeprecatedMemberTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private static void AssertIsDeprecated(MemberInfo member)
2323
}
2424

2525
[Test]
26-
public void TestDepreatedPrimitiveValue()
26+
public void TestDeprecatedPrimitiveValue()
2727
{
2828
AssertIsDeprecated(typeof(TestDeprecatedFields).GetProperty("DeprecatedInt32"));
2929
}

csharp/src/Google.Protobuf.Test/DeprecatedMemberTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private static void AssertIsDeprecated(MemberInfo member)
2525
}
2626

2727
[Test]
28-
public void TestDepreatedPrimitiveValue() =>
28+
public void TestDeprecatedPrimitiveValue() =>
2929
AssertIsDeprecated(typeof(TestDeprecatedFields).GetProperty(nameof(TestDeprecatedFields.DeprecatedInt32)));
3030

3131
[Test]

csharp/src/Google.Protobuf/Reflection/MethodDescriptor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ internal MethodDescriptor(MethodDescriptorProto proto, FileDescriptor file,
113113
internal void CrossLink()
114114
{
115115
IDescriptor lookup = File.DescriptorPool.LookupSymbol(Proto.InputType, this);
116-
if (lookup is not MessageDescriptor inpoutType)
116+
if (lookup is not MessageDescriptor inputType)
117117
{
118118
throw new DescriptorValidationException(this, "\"" + Proto.InputType + "\" is not a message type.");
119119
}
120-
InputType = inpoutType;
120+
InputType = inputType;
121121

122122
lookup = File.DescriptorPool.LookupSymbol(Proto.OutputType, this);
123123
if (lookup is not MessageDescriptor outputType)

java/core/src/main/java/com/google/protobuf/ByteString.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ public static final class Output extends OutputStream {
10511051
// Implementation note.
10521052
// The public methods of this class must be synchronized. ByteStrings
10531053
// are guaranteed to be immutable. Without some sort of locking, it could
1054-
// be possible for one thread to call toByteSring(), while another thread
1054+
// be possible for one thread to call toByteString(), while another thread
10551055
// is still modifying the underlying byte array.
10561056

10571057
private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];

java/core/src/main/java/com/google/protobuf/CodedOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ public static int computeUInt32SizeNoTag(final int value) {
702702
This code is ported from the C++ varint implementation.
703703
Implementation notes:
704704
705-
To calcuate varint size, we want to count the number of 7 bit chunks required. Rather than using
705+
To calculate varint size, we want to count the number of 7 bit chunks required. Rather than using
706706
division by 7 to accomplish this, we use multiplication by 9/64. This has a number of important
707707
properties:
708708
* It's roughly 1/7.111111. This makes the 0 bits set case have the same value as the 7 bits set

java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ public T parsePartialFrom(
15841584
throws InvalidProtocolBufferException {
15851585
T result = instance.newMutableInstance();
15861586
try {
1587-
// TODO: Try to make input with type CodedInpuStream.ArrayDecoder use
1587+
// TODO: Try to make input with type CodedInputStream.ArrayDecoder use
15881588
// fast path.
15891589
Schema<T> schema = Protobuf.getInstance().schemaFor(result);
15901590
schema.mergeFrom(result, CodedInputStreamReader.forCodedInput(input), extensionRegistry);

java/core/src/main/java/com/google/protobuf/RuntimeVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private static String versionString(int major, int minor, int patch, String suff
147147

148148
private static boolean checkDisabled() {
149149
// Check the environmental variable, and temporarily disable validation if it's set to true.
150-
String disableFlag = java.lang.System.getenv("TEMORARILY_DISABLE_PROTOBUF_VERSION_CHECK");
150+
String disableFlag = java.lang.System.getenv("TEMPORARILY_DISABLE_PROTOBUF_VERSION_CHECK");
151151
if ((disableFlag != null && disableFlag.equals("true"))) {
152152
return true;
153153
}

java/core/src/test/java/com/google/protobuf/CodedOutputStreamTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ private static void testEncodingOfString(OutputType outputType, char c, int leng
736736
Coder coder = outputType.newCoder(testAllTypes.getSerializedSize());
737737
testAllTypes.writeTo(coder.stream());
738738
coder.stream().flush();
739-
assertWithMessage("OuputType: " + outputType)
739+
assertWithMessage("OutputType: " + outputType)
740740
.that(fullString)
741741
.isEqualTo(TestAllTypes.parseFrom(coder.toByteArray()).getOptionalString());
742742
}

java/core/src/test/java/com/google/protobuf/MessageTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void testBuildNestedPartial() throws Exception {
244244
}
245245

246246
@Test
247-
public void testParseUnititialized() throws Exception {
247+
public void testParseUninitialized() throws Exception {
248248
try {
249249
TestRequired.parseFrom(ByteString.EMPTY);
250250
assertWithMessage("Should have thrown an exception.").fail();
@@ -254,7 +254,7 @@ public void testParseUnititialized() throws Exception {
254254
}
255255

256256
@Test
257-
public void testParseNestedUnititialized() throws Exception {
257+
public void testParseNestedUninitialized() throws Exception {
258258
ByteString data =
259259
TestRequiredForeign.newBuilder()
260260
.setOptionalMessage(TEST_REQUIRED_UNINITIALIZED)
@@ -301,7 +301,7 @@ public void testDynamicBuildPartial() throws Exception {
301301
}
302302

303303
@Test
304-
public void testDynamicParseUnititialized() throws Exception {
304+
public void testDynamicParseUninitialized() throws Exception {
305305
try {
306306
Descriptors.Descriptor descriptor = TestRequired.getDescriptor();
307307
DynamicMessage.parseFrom(descriptor, ByteString.EMPTY);

java/core/src/test/java/com/google/protobuf/RuntimeVersionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void versionValidation_olderRuntimeVersionDisallowed() {
126126
}
127127

128128
@Test
129-
public void versionValidation_differentVesionSuffixDisallowed() {
129+
public void versionValidation_differentVersionSuffixDisallowed() {
130130
String gencodeSuffix = "-test";
131131
RuntimeVersion.ProtobufRuntimeVersionException thrown =
132132
assertThrows(

java/test/linkage-monitor-check-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</description>
1515
<properties>
1616
<!--
17-
This verison is ok to kept old. Linkage Monitor overrides this
17+
This version is ok to kept old. Linkage Monitor overrides this
1818
version when checking linakage errors
1919
-->
2020
<protobuf.version>3.23.2</protobuf.version>

java/util/src/test/java/com/google/protobuf/util/FieldMaskUtilTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void testUnion_usingVarArgs() throws Exception {
224224
}
225225

226226
@Test
227-
public void testSubstract() throws Exception {
227+
public void testSubtract() throws Exception {
228228
// Only test a simple case here and expect
229229
// {@link FieldMaskTreeTest#testRemoveFieldPath} to cover all scenarios.
230230
FieldMask mask1 = FieldMaskUtil.fromString("foo,bar.baz,bar.quz");
@@ -234,7 +234,7 @@ public void testSubstract() throws Exception {
234234
}
235235

236236
@Test
237-
public void testSubstract_usingVarArgs() throws Exception {
237+
public void testSubtract_usingVarArgs() throws Exception {
238238
FieldMask mask1 = FieldMaskUtil.fromString("foo,bar.baz,bar.quz.bar");
239239
FieldMask mask2 = FieldMaskUtil.fromString("foo.bar,bar.baz.quz");
240240
FieldMask mask3 = FieldMaskUtil.fromString("bar.quz");

objectivec/DevTools/pddm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ def TryAppend(self, line, line_num):
525525
self.Append(line)
526526
return (True, False)
527527

528-
def BindMacroCollection(self, macro_colletion):
529-
if not macro_colletion:
528+
def BindMacroCollection(self, macro_collection):
529+
if not macro_collection:
530530
return
531531
if self._import_resolver is None:
532532
raise PDDMError('Got an IMPORT-DEFINES without a resolver (line %d):'
@@ -541,7 +541,7 @@ def BindMacroCollection(self, macro_colletion):
541541
imported_src_file = SourceFile(imported_file, self._import_resolver)
542542
imported_src_file._ParseFile()
543543
for section in imported_src_file._sections:
544-
section.BindMacroCollection(macro_colletion)
544+
section.BindMacroCollection(macro_collection)
545545
except PDDMError as e:
546546
raise PDDMError('%s\n...while importing defines:\n'
547547
' Line %d: %s' %

objectivec/GPBAny.pbobjc.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objectivec/GPBDescriptor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ - (instancetype)initWithExtensionDescription:(GPBExtensionDescription *)desc
11551155
@"Internal error: If a MessageSet extension is set, the data type must be a message.");
11561156
NSAssert((desc->options & GPBExtensionRepeated) == 0,
11571157
@"Internal Error: MessageSet extension can't be repeated.");
1158-
// NOTE: Could also check that the exteneded class is a MessageSet, but that would force the
1158+
// NOTE: Could also check that the extended class is a MessageSet, but that would force the
11591159
// ObjC runtime to start up that class and that isn't desirable here.
11601160
}
11611161
#endif

objectivec/GPBDuration.pbobjc.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objectivec/GPBMessage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ CF_EXTERN_C_END
509509

510510
/**
511511
* Merges in the data from an `GPBUnknownFields`, meaning the data from the unknown fields gets
512-
* re-parsed so any known fields will be propertly set.
512+
* re-parsed so any known fields will be properly set.
513513
*
514514
* If the intent is to *replace* the message's unknown fields, call `-clearUnknownFields` first.
515515
*

objectivec/GPBTimestamp.pbobjc.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objectivec/Tests/GPBCodedInputStreamTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ - (void)testBytesToEndGroup {
560560
[self assertReadByteToEndGroupFails:bytes(35, 25, 0xf0, 0xde, 0xbc, 0x9a, 0x78, 0x56,
561561
0x34)]; // truncated fixed64
562562

563-
// Mising end group
563+
// Missing end group
564564
[self assertReadByteToEndGroupFails:bytes(35)];
565565
[self assertReadByteToEndGroupFails:bytes(35, 8, 1)];
566566
[self assertReadByteToEndGroupFails:bytes(35, 43)];

objectivec/Tests/GPBCodedOutputStreamTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ - (void)testCFStringGetCStringPtrAndStringsWithNullChars {
330330
// This test exists to verify that CFStrings with embedded NULLs still expose
331331
// their raw buffer if they are backed by UTF8 storage. If this fails, the
332332
// quick/direct access paths in GPBCodedOutputStream that depend on
333-
// CFStringGetCStringPtr need to be re-evalutated (maybe just removed).
333+
// CFStringGetCStringPtr need to be re-evaluated (maybe just removed).
334334
// And yes, we do get NULLs in strings from some servers.
335335

336336
char zeroTest[] = "\0Test\0String";

objectivec/Tests/GPBMessageTests.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,14 +1735,14 @@ - (void)testCopyWithAutocreatedExtension {
17351735
// Mutable copy shouldn't copy autocreated extensions.
17361736
TestAllExtensions *message = [TestAllExtensions message];
17371737
GPBExtensionDescriptor *optionalGroupExtension = [UnittestRoot optionalGroupExtension];
1738-
GPBExtensionDescriptor *optionalNestedMessageExtesion =
1738+
GPBExtensionDescriptor *optionalNestedMessageExtension =
17391739
[UnittestRoot optionalNestedMessageExtension];
17401740
TestAllTypes_OptionalGroup *optionalGroup = [message getExtension:optionalGroupExtension];
17411741
optionalGroup.a = 42;
17421742
XCTAssertNotNil(optionalGroup);
1743-
XCTAssertNotNil([message getExtension:optionalNestedMessageExtesion]);
1743+
XCTAssertNotNil([message getExtension:optionalNestedMessageExtension]);
17441744
XCTAssertTrue([message hasExtension:optionalGroupExtension]);
1745-
XCTAssertFalse([message hasExtension:optionalNestedMessageExtesion]);
1745+
XCTAssertFalse([message hasExtension:optionalNestedMessageExtension]);
17461746

17471747
TestAllExtensions *message2 = [[message copy] autorelease];
17481748

@@ -1754,11 +1754,11 @@ - (void)testCopyWithAutocreatedExtension {
17541754
XCTAssertNotEqual([message getExtension:optionalGroupExtension],
17551755
[message2 getExtension:optionalGroupExtension]);
17561756

1757-
XCTAssertFalse([message2 hasExtension:optionalNestedMessageExtesion]);
1757+
XCTAssertFalse([message2 hasExtension:optionalNestedMessageExtension]);
17581758
// Intentionally doing a pointer comparison (auto creation should be
17591759
// different)
1760-
XCTAssertNotEqual([message getExtension:optionalNestedMessageExtesion],
1761-
[message2 getExtension:optionalNestedMessageExtesion]);
1760+
XCTAssertNotEqual([message getExtension:optionalNestedMessageExtension],
1761+
[message2 getExtension:optionalNestedMessageExtension]);
17621762
}
17631763

17641764
- (void)testClearMessageAutocreatedExtension {

objectivec/Tests/GPBUnknownFieldSetTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ - (void)testParsingNestingGroupData {
514514
0x34)
515515
error:NULL]); // truncated fixed64
516516

517-
// Mising end group
517+
// Missing end group
518518
XCTAssertNil([TestEmptyMessage parseFromData:DataFromBytes(35) error:NULL]);
519519
XCTAssertNil([TestEmptyMessage parseFromData:DataFromBytes(35, 8, 1) error:NULL]);
520520
XCTAssertNil([TestEmptyMessage parseFromData:DataFromBytes(35, 43) error:NULL]);

objectivec/Tests/GPBUnknownFieldsTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ - (void)testParsingNestingGroupData {
11581158
0x34)
11591159
error:NULL]); // truncated fixed64
11601160

1161-
// Mising end group
1161+
// Missing end group
11621162
XCTAssertNil([TestEmptyMessage parseFromData:DataFromBytes(35) error:NULL]);
11631163
XCTAssertNil([TestEmptyMessage parseFromData:DataFromBytes(35, 8, 1) error:NULL]);
11641164
XCTAssertNil([TestEmptyMessage parseFromData:DataFromBytes(35, 43) error:NULL]);

objectivec/Tests/unittest_objc.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ message BoolOnlyMessage {
861861
// of #imports. Within the WKTs, references to each other are just path
862862
// based imports, but when reference from another proto file, they should be
863863
// conditional to support the framework import style.
864-
message WKTRefereceMessage {
864+
message WKTReferenceMessage {
865865
optional google.protobuf.Any an_any = 1;
866866
}
867867

php/src/Google/Protobuf/Internal/AnyBase.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public function unpack()
2929
throw new \Exception(
3030
"Type url needs to be type.googleapis.com/fully-qulified");
3131
}
32-
$fully_qualifed_name =
32+
$fully_qualified_name =
3333
substr($this->type_url, $url_prifix_len);
3434

3535
// Create message according to fully qualified name.
3636
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
37-
$desc = $pool->getDescriptorByProtoName($fully_qualifed_name);
37+
$desc = $pool->getDescriptorByProtoName($fully_qualified_name);
3838
if (is_null($desc)) {
39-
throw new \Exception("Class ".$fully_qualifed_name
39+
throw new \Exception("Class ".$fully_qualified_name
4040
." hasn't been added to descriptor pool");
4141
}
4242
$klass = $desc->getClass();
@@ -66,8 +66,8 @@ public function pack($msg)
6666
// Set type url.
6767
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
6868
$desc = $pool->getDescriptorByClassName(get_class($msg));
69-
$fully_qualifed_name = $desc->getFullName();
70-
$this->type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualifed_name;
69+
$fully_qualified_name = $desc->getFullName();
70+
$this->type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualified_name;
7171
}
7272

7373
/**
@@ -79,8 +79,8 @@ public function is($klass)
7979
{
8080
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
8181
$desc = $pool->getDescriptorByClassName($klass);
82-
$fully_qualifed_name = $desc->getFullName();
83-
$type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualifed_name;
82+
$fully_qualified_name = $desc->getFullName();
83+
$type_url = GPBUtil::TYPE_URL_PREFIX . $fully_qualified_name;
8484
return $this->type_url === $type_url;
8585
}
8686
}

php/tests/GeneratedClassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ public function testMessagesAndEnumsWithPhpNamespace()
883883
$this->assertSame(TestNamespace\NestedEnum::ZERO, $m->getNestedEnum());
884884
}
885885

886-
public function testMesssagesAndEnumsWithEmptyPhpNamespace()
886+
public function testMessagesAndEnumsWithEmptyPhpNamespace()
887887
{
888888
$m = new TestEmptyNamespace();
889889
$n = new TestEmptyNamespace\NestedMessage();

0 commit comments

Comments
 (0)