Skip to content

Commit b5898dc

Browse files
authored
PR #477: Fix spelling errors in comments
1 parent 7c4f517 commit b5898dc

File tree

17 files changed

+48
-48
lines changed

17 files changed

+48
-48
lines changed

src/ICSharpCode.SharpZipLib/Checksum/BZip2Crc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public long Value
134134
{
135135
get
136136
{
137-
// Tehcnically, the output should be:
137+
// Technically, the output should be:
138138
//return (long)(~checkValue ^ crcXor);
139139
// but x ^ 0 = x, so there is no point in adding
140140
// the XOR operation

src/ICSharpCode.SharpZipLib/Core/FileSystemScanner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public string Name
7878
}
7979

8080
/// <summary>
81-
/// Get set a value indicating wether scanning should continue or not.
81+
/// Get set a value indicating whether scanning should continue or not.
8282
/// </summary>
8383
public bool ContinueRunning
8484
{
@@ -209,7 +209,7 @@ public Exception Exception
209209
}
210210

211211
/// <summary>
212-
/// Get / set a value indicating wether scanning should continue.
212+
/// Get / set a value indicating whether scanning should continue.
213213
/// </summary>
214214
public bool ContinueRunning
215215
{

src/ICSharpCode.SharpZipLib/Lzw/LzwInputStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ public override void SetLength(long value)
485485
/// Writes a sequence of bytes to stream and advances the current position
486486
/// This method always throws a NotSupportedException
487487
/// </summary>
488-
/// <param name="buffer">Thew buffer containing data to write.</param>
488+
/// <param name="buffer">The buffer containing data to write.</param>
489489
/// <param name="offset">The offset of the first byte to write.</param>
490490
/// <param name="count">The number of bytes to write.</param>
491491
/// <exception cref="NotSupportedException">Any access</exception>

src/ICSharpCode.SharpZipLib/Tar/TarArchive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected TarArchive()
6161
}
6262

6363
/// <summary>
64-
/// Initalise a TarArchive for input.
64+
/// Initialise a TarArchive for input.
6565
/// </summary>
6666
/// <param name="stream">The <see cref="TarInputStream"/> to use for input.</param>
6767
protected TarArchive(TarInputStream stream)

src/ICSharpCode.SharpZipLib/Tar/TarOutputStream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public override int ReadByte()
187187
/// <param name="count">The desired number of bytes to read.</param>
188188
/// <returns>The total number of bytes read, or zero if at the end of the stream.
189189
/// The number of bytes may be less than the <paramref name="count">count</paramref>
190-
/// requested if data is not avialable.</returns>
190+
/// requested if data is not available.</returns>
191191
public override int Read(byte[] buffer, int offset, int count)
192192
{
193193
return outputStream.Read(buffer, offset, count);
@@ -250,7 +250,7 @@ public int GetRecordSize()
250250
}
251251

252252
/// <summary>
253-
/// Get a value indicating wether an entry is open, requiring more data to be written.
253+
/// Get a value indicating whether an entry is open, requiring more data to be written.
254254
/// </summary>
255255
private bool IsEntryOpen
256256
{
@@ -483,7 +483,7 @@ private void WriteEofBlock()
483483
private int assemblyBufferLength;
484484

485485
/// <summary>
486-
/// Flag indicating wether this instance has been closed or not.
486+
/// Flag indicating whether this instance has been closed or not.
487487
/// </summary>
488488
private bool isClosed;
489489

src/ICSharpCode.SharpZipLib/Zip/Compression/DeflaterEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class DeflaterEngine
5656

5757
/// <summary>
5858
/// Construct instance with pending buffer
59-
/// Adler calculation will be peformed
59+
/// Adler calculation will be performed
6060
/// </summary>
6161
/// <param name="pending">
6262
/// Pending buffer to use

src/ICSharpCode.SharpZipLib/Zip/Compression/Streams/InflaterInputStream.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ public override void SetLength(long value)
596596
/// Writes a sequence of bytes to stream and advances the current position
597597
/// This method always throws a NotSupportedException
598598
/// </summary>
599-
/// <param name="buffer">Thew buffer containing data to write.</param>
599+
/// <param name="buffer">The buffer containing data to write.</param>
600600
/// <param name="offset">The offset of the first byte to write.</param>
601601
/// <param name="count">The number of bytes to write.</param>
602602
/// <exception cref="NotSupportedException">Any access</exception>
@@ -704,7 +704,7 @@ public override int Read(byte[] buffer, int offset, int count)
704704
protected long csize;
705705

706706
/// <summary>
707-
/// Flag indicating wether this instance has been closed or not.
707+
/// Flag indicating whether this instance has been closed or not.
708708
/// </summary>
709709
private bool isClosed;
710710

src/ICSharpCode.SharpZipLib/Zip/FastZip.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public FastZip(FastZipEvents events)
209209
#region Properties
210210

211211
/// <summary>
212-
/// Get/set a value indicating wether empty directories should be created.
212+
/// Get/set a value indicating whether empty directories should be created.
213213
/// </summary>
214214
public bool CreateEmptyDirectories
215215
{
@@ -267,7 +267,7 @@ public IEntryFactory EntryFactory
267267
/// read Zip64 archives. However it does avoid the situation were a large file
268268
/// is added and cannot be completed correctly.
269269
/// NOTE: Setting the size for entries before they are added is the best solution!
270-
/// By default the EntryFactory used by FastZip will set fhe file size.
270+
/// By default the EntryFactory used by FastZip will set the file size.
271271
/// </remarks>
272272
public UseZip64 UseZip64
273273
{
@@ -276,7 +276,7 @@ public UseZip64 UseZip64
276276
}
277277

278278
/// <summary>
279-
/// Get/set a value indicating wether file dates and times should
279+
/// Get/set a value indicating whether file dates and times should
280280
/// be restored when extracting files from an archive.
281281
/// </summary>
282282
/// <remarks>The default value is false.</remarks>
@@ -533,7 +533,7 @@ private void ProcessFile(object sender, ScanEventArgs e)
533533
{
534534
try
535535
{
536-
// The open below is equivalent to OpenRead which gaurantees that if opened the
536+
// The open below is equivalent to OpenRead which guarantees that if opened the
537537
// file will not be changed by subsequent openers, but precludes opening in some cases
538538
// were it could succeed. ie the open may fail as its already open for writing and the share mode should reflect that.
539539
using (FileStream stream = File.Open(e.Name, FileMode.Open, FileAccess.Read, FileShare.Read))

src/ICSharpCode.SharpZipLib/Zip/WindowsNameTransform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public bool AllowParentTraversal
8181
}
8282

8383
/// <summary>
84-
/// Gets or sets a value indicating wether paths on incoming values should be removed.
84+
/// Gets or sets a value indicating whether paths on incoming values should be removed.
8585
/// </summary>
8686
public bool TrimIncomingPaths
8787
{

src/ICSharpCode.SharpZipLib/Zip/ZipConstants.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public enum GeneralBitFlags
161161
Method = 0x0006,
162162

163163
/// <summary>
164-
/// Bit 3 if set indicates a trailing data desciptor is appended to the entry data
164+
/// Bit 3 if set indicates a trailing data descriptor is appended to the entry data
165165
/// </summary>
166166
Descriptor = 0x0008,
167167

@@ -443,12 +443,12 @@ public static class ZipConstants
443443
public const int ArchiveExtraDataSignature = 'P' | ('K' << 8) | (6 << 16) | (7 << 24);
444444

445445
/// <summary>
446-
/// Central header digitial signature
446+
/// Central header digital signature
447447
/// </summary>
448448
public const int CentralHeaderDigitalSignature = 'P' | ('K' << 8) | (5 << 16) | (5 << 24);
449449

450450
/// <summary>
451-
/// Central header digitial signature
451+
/// Central header digital signature
452452
/// </summary>
453453
[Obsolete("Use CentralHeaderDigitalSignaure instead")]
454454
public const int CENDIGITALSIG = 'P' | ('K' << 8) | (5 << 16) | (5 << 24);
@@ -468,7 +468,7 @@ public static class ZipConstants
468468

469469
/// <summary>
470470
/// Default encoding used for string conversion. 0 gives the default system OEM code page.
471-
/// Using the default code page isnt the full solution neccessarily
471+
/// Using the default code page isnt the full solution necessarily
472472
/// there are many variable factors, codepage 850 is often a good choice for
473473
/// European users, however be careful about compatability.
474474
/// </summary>
@@ -479,32 +479,32 @@ public static int DefaultCodePage
479479
set => ZipStrings.CodePage = value;
480480
}
481481

482-
/// <summary> Depracated wrapper for <see cref="ZipStrings.ConvertToString(byte[], int)"/></summary>
482+
/// <summary> Deprecated wrapper for <see cref="ZipStrings.ConvertToString(byte[], int)"/></summary>
483483
[Obsolete("Use ZipStrings.ConvertToString instead")]
484484
public static string ConvertToString(byte[] data, int count)
485485
=> ZipStrings.ConvertToString(data, count);
486486

487-
/// <summary> Depracated wrapper for <see cref="ZipStrings.ConvertToString(byte[])"/></summary>
487+
/// <summary> Deprecated wrapper for <see cref="ZipStrings.ConvertToString(byte[])"/></summary>
488488
[Obsolete("Use ZipStrings.ConvertToString instead")]
489489
public static string ConvertToString(byte[] data)
490490
=> ZipStrings.ConvertToString(data);
491491

492-
/// <summary> Depracated wrapper for <see cref="ZipStrings.ConvertToStringExt(int, byte[], int)"/></summary>
492+
/// <summary> Deprecated wrapper for <see cref="ZipStrings.ConvertToStringExt(int, byte[], int)"/></summary>
493493
[Obsolete("Use ZipStrings.ConvertToStringExt instead")]
494494
public static string ConvertToStringExt(int flags, byte[] data, int count)
495495
=> ZipStrings.ConvertToStringExt(flags, data, count);
496496

497-
/// <summary> Depracated wrapper for <see cref="ZipStrings.ConvertToStringExt(int, byte[])"/></summary>
497+
/// <summary> Deprecated wrapper for <see cref="ZipStrings.ConvertToStringExt(int, byte[])"/></summary>
498498
[Obsolete("Use ZipStrings.ConvertToStringExt instead")]
499499
public static string ConvertToStringExt(int flags, byte[] data)
500500
=> ZipStrings.ConvertToStringExt(flags, data);
501501

502-
/// <summary> Depracated wrapper for <see cref="ZipStrings.ConvertToArray(string)"/></summary>
502+
/// <summary> Deprecated wrapper for <see cref="ZipStrings.ConvertToArray(string)"/></summary>
503503
[Obsolete("Use ZipStrings.ConvertToArray instead")]
504504
public static byte[] ConvertToArray(string str)
505505
=> ZipStrings.ConvertToArray(str);
506506

507-
/// <summary> Depracated wrapper for <see cref="ZipStrings.ConvertToArray(int, string)"/></summary>
507+
/// <summary> Deprecated wrapper for <see cref="ZipStrings.ConvertToArray(int, string)"/></summary>
508508
[Obsolete("Use ZipStrings.ConvertToArray instead")]
509509
public static byte[] ConvertToArray(int flags, string str)
510510
=> ZipStrings.ConvertToArray(flags, str);

0 commit comments

Comments
 (0)