Skip to content

Commit f310fed

Browse files
committed
docs: improve line wrapping in code examples and comments
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
1 parent 8e77931 commit f310fed

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

readme.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,17 @@ public class SomeService
5959
CancellationToken cancellationToken = default
6060
)
6161
{
62-
// A temporary stream is either backed by a memory stream or a file stream and thus seekable.
62+
// A temporary stream is either backed by a memory stream or a file stream and
63+
// thus seekable.
6364
await using TemporaryStream temporaryStream =
6465
await _temporaryStreamService.CopyToTemporaryStreamAsync(
6566
nonSeekableStream,
6667
cancellationToken: cancellationToken
6768
);
6869

6970
// Do something here with the temporary stream (analysis, processing, etc.).
70-
// For example, your code base might have a PdfProcessor that requires a seekable stream.
71+
// For example, your code base might have a PdfProcessor that requires
72+
// a seekable stream.
7173
using (var pdf = new PdfProcessor(temporaryStream, leaveOpen: true))
7274
{
7375
var emptyOrIrrelevantPages =
@@ -165,8 +167,9 @@ byte[] md5HashArray = hashingPlugin.GetHashArray(nameof(MD5));
165167
The `HashAlgorithm` instances passed to the `HashingPlugin` constructor in the previous example are actually converted to instances of `CopyToHashCalculator` via an implicit conversion operator. You can instantiate this class yourself to have more control over the conversion method that converts a hash byte array into a string as well as the name used to identify the hash calculator.
166168

167169
```csharp
168-
// You can explicitly create instances of CopyToHashCalculator to have more control over the
169-
// conversion method and the name that identifies the hash calculator within the HashingPlugin.
170+
// You can explicitly create instances of CopyToHashCalculator to have
171+
// more control over the conversion method and the name that identifies
172+
// the hash calculator within the HashingPlugin.
170173
var sha1Calculator = new CopyToHashCalculator(
171174
SHA1.Create(),
172175
HashConversionMethod.UpperHexadecimal,

0 commit comments

Comments
 (0)