Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
String literal spelling corrections - A through Z (#23674)
Browse files Browse the repository at this point in the history
  • Loading branch information
bchavez authored and danmoseley committed Aug 30, 2017
1 parent 110456f commit dd24283
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ internal int DangerousCopyTo(T[] array, int arrayIndex)
Debug.Assert(
count == (_tailIndex - _headIndex) ||
count == (_tailIndex + 1 - _headIndex),
"Count should be the same as tail - head, but allowing for the possibilty that " +
"Count should be the same as tail - head, but allowing for the possibility that " +
"a peek decremented _tailIndex before seeing that a freeze was happening.");
Debug.Assert(arrayIndex <= array.Length - count);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
{
if (savedLicenseKeys == null || savedLicenseKeys[type.AssemblyQualifiedName] == null)
{
Debug.WriteLineIf(s_runtimeLicenseContextSwitch.TraceVerbose, "savedLicenseKey is null or doesnt contain our type");
Debug.WriteLineIf(s_runtimeLicenseContextSwitch.TraceVerbose, "savedLicenseKey is null or doesn't contain our type");
if (savedLicenseKeys == null)
{
savedLicenseKeys = new Hashtable();
Expand Down
2 changes: 1 addition & 1 deletion src/System.Data.Common/src/System/Data/DataColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ public override string ToString() => _expression == null ?

internal object ConvertXmlToObject(string s)
{
Debug.Assert(s != null, "Caller is resposible for missing element/attribure case");
Debug.Assert(s != null, "Caller is resposible for missing element/attribute case");
InsureStorage();
return _storage.ConvertXmlToObject(s);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ If one of the operands is true the result is true

if ((vRight == DBNull.Value) || (right.IsSqlColumn && DataStorage.IsObjectSqlNull(vRight)))
continue;
Debug.Assert((!DataStorage.IsObjectNull(vLeft)) && (!DataStorage.IsObjectNull(vRight)), "Imposible..");
Debug.Assert((!DataStorage.IsObjectNull(vLeft)) && (!DataStorage.IsObjectNull(vRight)), "Impossible.");

resultType = DataStorage.GetStorageType(vLeft.GetType());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private void Test_Write_Metric(Listener listener)
Assert.True(timeSum < 2, $"FAILURE: {timeSum} < 2"); // But well under 2 sec.

// Do all the things that depend on the count of events last so we know everything else is sane
Assert.True(4 <= evts.Count, "We expect two metrices at the begining trigger and two at the end trigger. evts.Count = " + evts.Count);
Assert.True(4 <= evts.Count, "We expect two metrics at the beginning trigger and two at the end trigger. evts.Count = " + evts.Count);
Assert.True(evts.Count % 2 == 0, "We expect two metrics for every trigger. evts.Count = " + evts.Count);

ValidateSingleEventCounter(evts[0], "Request", 0, 0, 0, float.PositiveInfinity, float.NegativeInfinity);
Expand Down
2 changes: 1 addition & 1 deletion src/System.IO.Ports/tests/SerialPort/Read_char_int_int.cs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public void Read_ResizeBuffer()
char[] charXmitBuffer = TCSupport.GetRandomChars(1023, TCSupport.CharacterOptions.ASCII);
int readResult;

Debug.WriteLine("Verifying that Read(char[], int, int) will compact data in the buffer buffer");
Debug.WriteLine("Verifying that Read(char[], int, int) will compact data in the buffer");

com1.Encoding = Encoding.ASCII;
com2.Encoding = Encoding.ASCII;
Expand Down
6 changes: 3 additions & 3 deletions src/System.IO.Ports/tests/SerialStream/ReadTimeout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ private void VerifyLongTimeout(ReadMethodDelegate readMethod, int readTimeout)
com1.BaseStream.ReadTimeout = readTimeout;

Assert.True(readTimeout == com1.BaseStream.ReadTimeout,
string.Format("Err_7071ahpsb!!! Expected ReadTimeout to be {0} actaul {1}", readTimeout,
string.Format("Err_7071ahpsb!!! Expected ReadTimeout to be {0} actual {1}", readTimeout,
com1.BaseStream.ReadTimeout));

VerifyLongTimeout(readMethod, com1, com2);
Expand Down Expand Up @@ -408,7 +408,7 @@ private void VerifyTimeout(ReadMethodDelegate readMethod, int readTimeout)
com1.BaseStream.ReadTimeout = readTimeout;

Assert.True(readTimeout == com1.BaseStream.ReadTimeout,
string.Format("Err_236897ahpbm!!! Expected ReadTimeout to be {0} actaul {1}", readTimeout,
string.Format("Err_236897ahpbm!!! Expected ReadTimeout to be {0} actual {1}", readTimeout,
com1.BaseStream.ReadTimeout));

VerifyTimeout(readMethod, com1.BaseStream);
Expand Down Expand Up @@ -477,7 +477,7 @@ private void Verify0Timeout(ReadMethodDelegate readMethod)
com1.BaseStream.ReadTimeout = 0;

Assert.True(0 == com1.BaseStream.ReadTimeout,
string.Format("Err_72072ahps!!! Expected ReadTimeout to be {0} actaul {1}", 0,
string.Format("Err_72072ahps!!! Expected ReadTimeout to be {0} actual {1}", 0,
com1.BaseStream.ReadTimeout));

Verify0Timeout(readMethod, com1.BaseStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public void AcceptAsync_WithReceiveBuffer_Success()
}

Assert.True(
accepted.WaitOne(TestSettings.PassingTestTimeout), "Test completed in alotted time");
accepted.WaitOne(TestSettings.PassingTestTimeout), "Test completed in allotted time");

Assert.Equal(
SocketError.Success, acceptArgs.SocketError);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public QilNode Boolean(bool b)
//-----------------------------------------------
private static void CheckLogicArg(QilNode arg)
{
Debug.Assert(arg != null, "Argulent shouldn't be null");
Debug.Assert(arg != null, "Argument shouldn't be null");
Debug.Assert(arg.XmlType.TypeCode == XmlTypeCode.Boolean && arg.XmlType.IsSingleton,
"The operand must be boolean-typed"
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public virtual QilNode Predicate(QilNode nodeset, QilNode predicate, bool isReve
if (isReverseStep)
{
Debug.Assert(nodeset.NodeType == QilNodeType.DocOrderDistinct,
"ReverseAxe in Qil is actuly reverse and we compile them here in builder by wrapping to DocOrderDistinct()"
"ReverseAxe in Qil is actually reverse and we compile them here in builder by wrapping to DocOrderDistinct()"
);
// The trick here is that we unwarp it back, compile as regular predicate and wrap again.
// this way this wat we hold invariant that path expresion are always DOD and make predicates on reverse axe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public string LookupNamespace(string prefix)
--record // in reverce direction
)
{
Debug.Assert(0 < record, "first record is lookup bariaer, so we don't need to check this condition runtime");
Debug.Assert(0 < record, "first record is lookup barrier, so we don't need to check this condition runtime");
if (_records[record].prefix == prefix)
{
return _records[record].nsUri;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public QilNode FixupNode

public virtual void StartBuild()
{
Debug.Assert(!_inTheBuild, "XPathBuilder is buisy!");
Debug.Assert(!_inTheBuild, "XPathBuilder is busy!");
_inTheBuild = true;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ private void LoadDecimalFormat(NsDecl stylesheetNsList)
{
// Try move to second attribute and if it is missing to first.
bool dummy = _input.MoveToXsltAttribute(3 + j, _decimalFormatAttributes[3 + j].name) || _input.MoveToXsltAttribute(3 + i, _decimalFormatAttributes[3 + i].name);
Debug.Assert(dummy, "One of the atts should have lineInfo. if both are defualt they can't conflict.");
Debug.Assert(dummy, "One of the attrs should have lineInfo. If both are default they can't conflict.");
ReportError(/*[XT1300]*/SR.Xslt_DecimalFormatSignsNotDistinct, _decimalFormatAttributes[3 + i].name, _decimalFormatAttributes[3 + j].name);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ public void LoadXmlReader3()
}
if (fTEST_FAIL)
{
_output.WriteLine("Appear to have accidently closed the Reader");
_output.WriteLine("Appear to have accidentally closed the Reader");
Assert.True(false);
}
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void ExitCode_Roundtrips(int exitCode)
[InlineData(2)] // setting ExitCode both from Main and from an Unloading event handler.
[InlineData(3)] // using Exit(exitCode)
[ActiveIssue("https://github.com/dotnet/corefx/issues/21415", TargetFrameworkMonikers.UapNotUapAot)]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20387 - ILC test pipeline does not accomodate tests in child processes built into custom assemblies.", TargetFrameworkMonikers.UapAot)]
[ActiveIssue("https://github.com/dotnet/corefx/issues/20387 - ILC test pipeline does not accommodate tests in child processes built into custom assemblies.", TargetFrameworkMonikers.UapAot)]
public static void ExitCode_VoidMainAppReturnsSetValue(int mode)
{
int expectedExitCode = 123;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ private void WriteStartAttributeCore(ref string prefix, string localName, string
{
if (prefix.Length != 0)
{
throw new InvalidOperationException("Invalid Namespaceffor empty Prefix.");
throw new InvalidOperationException("Invalid Namespace for empty Prefix.");
}
}
else if (prefix.Length == 0)
Expand Down

0 comments on commit dd24283

Please sign in to comment.