Skip to content

Commit 9afc397

Browse files
committed
fix typos
1 parent 2566a8b commit 9afc397

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This library provides APIs to run Munin-Node as a background service integrated
2929
If you want to integrate with .NET Generic Host, especially if you want to implement Munin-Node running as a **Windows Services** or **systemd unit**, you can use this extension library. See [this example](./examples/Smdn.Net.MuninNode.Hosting/getting-started/) for detail.
3030

3131
# Usage
32-
To use the released packge, add `<PackageReference>` to the project file.
32+
To use the released package, add `<PackageReference>` to the project file.
3333

3434
```xml
3535
<ItemGroup>
@@ -76,7 +76,7 @@ quit <-- type `quit` to close connection
7676
Connection closed by foreign host.
7777
```
7878

79-
# For contributers
79+
# For contributors
8080
Contributions are appreciated!
8181

8282
If there's a feature you would like to add or a bug you would like to fix, please read [Contribution guidelines](./CONTRIBUTING.md) and create an Issue or Pull Request.

src/Smdn.Net.MuninNode/Smdn.Net.MuninNode/LocalNode.Create.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ CancellationToken cancellationToken
8080
/// Creates a new instance of the <see cref="LocalNode"/> class.
8181
/// </summary>
8282
/// <param name="plugins">
83-
/// The readolny collection of <see cref="IPlugin"/>s provided by this node.
83+
/// The readonly collection of <see cref="IPlugin"/>s provided by this node.
8484
/// </param>
8585
/// <param name="port">
8686
/// The port number on which this node accepts connections.

src/Smdn.Net.MuninNode/Smdn.Net.MuninNode/NodeBase.LoggerMessages.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ partial class NodeBase {
6969
private static readonly Action<ILogger, Exception?> LogUnexpectedExceptionWhileStartingTransaction = LoggerMessage.Define(
7070
LogLevel.Error,
7171
eventId: default, // TODO
72-
formatString: "Unexpected exception occured while starting transaction."
72+
formatString: "Unexpected exception occurred while starting transaction."
7373
);
7474
private static readonly Action<ILogger, Exception?> LogSessionStarted = LoggerMessage.Define(
7575
LogLevel.Information,
@@ -89,9 +89,9 @@ partial class NodeBase {
8989
private static readonly Action<ILogger, Exception?> LogSessionUnexpectedExceptionWhileReceiving = LoggerMessage.Define(
9090
LogLevel.Error,
9191
eventId: default, // TODO
92-
formatString: "Unexpected exception occured while receiving."
92+
formatString: "Unexpected exception occurred while receiving."
9393
);
94-
private static readonly Action<ILogger, Exception?> LogSessionClientDisconnectedWhileSeinding = LoggerMessage.Define(
94+
private static readonly Action<ILogger, Exception?> LogSessionClientDisconnectedWhileSending = LoggerMessage.Define(
9595
LogLevel.Information,
9696
eventId: default, // TODO
9797
formatString: "Client disconnected while sending."
@@ -104,7 +104,7 @@ partial class NodeBase {
104104
private static readonly Action<ILogger, Exception?> LogSessionUnexpectedExceptionWhileProcessingCommand = LoggerMessage.Define(
105105
LogLevel.Error,
106106
eventId: default, // TODO
107-
formatString: "Unexpected exception occured while processing command."
107+
formatString: "Unexpected exception occurred while processing command."
108108
);
109109

110110
private static readonly Func<ILogger, string, IDisposable?> LoggerScopeForSession = LoggerMessage.DefineScope<string>(

src/Smdn.Net.MuninNode/Smdn.Net.MuninNode/NodeBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ await AcceptAsync(
338338
/// The <see cref="ValueTask" /> this method returns will never complete unless the cancellation requested by the <paramref name="cancellationToken" />.
339339
/// </summary>
340340
/// <param name="throwIfCancellationRequested">
341-
/// If <see langworkd="true" />, throws an <see cref="OperationCanceledException" /> on cancellation requested.
342-
/// If <see langworkd="false" />, completes the task without throwing an <see cref="OperationCanceledException" />.
341+
/// If <see langword="true" />, throws an <see cref="OperationCanceledException" /> on cancellation requested.
342+
/// If <see langword="false" />, completes the task without throwing an <see cref="OperationCanceledException" />.
343343
/// </param>
344344
/// <param name="cancellationToken">
345345
/// The <see cref="CancellationToken" /> to stop accepting sessions.
@@ -625,7 +625,7 @@ await protocolHandler.HandleCommandAsync(
625625
}
626626
catch (MuninNodeClientDisconnectedException) {
627627
if (Logger is not null)
628-
LogSessionClientDisconnectedWhileSeinding(Logger, null);
628+
LogSessionClientDisconnectedWhileSending(Logger, null);
629629
break; // expected exception
630630
}
631631
catch (OperationCanceledException) {

src/Smdn.Net.MuninNode/Smdn.Net.MuninPlugin/PluginFieldNormalValueRange.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Smdn.Net.MuninPlugin;
99
/// Represents the range of normal values on the graph.
1010
/// </summary>
1111
/// <remarks>
12-
/// With <c>{fieldname}.warning</c> or <c>{fieldname}.ciritical</c>, you can define the upper and lower limits of values that are considered to be warning or critical.
12+
/// With <c>{fieldname}.warning</c> or <c>{fieldname}.critical</c>, you can define the upper and lower limits of values that are considered to be warning or critical.
1313
/// This type defines the upper limit, lower limit, or range that is considered to be normal value.
1414
/// </remarks>
1515
/// <seealso href="https://guide.munin-monitoring.org/en/latest/reference/plugin.html#fieldname-critical">Plugin reference - Field name attributes - {fieldname}.critical</seealso>

tests/Smdn.Net.MuninNode/Smdn.Net.MuninPlugin/PluginGraphAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ expectedArgumentExceptionType is null
116116
[TestCase(-1, typeof(ArgumentOutOfRangeException))]
117117
[TestCase(0, typeof(ArgumentOutOfRangeException))]
118118
[TestCase(1, null)]
119-
public void Ctor_Widith(int? width, Type? expectedArgumentExceptionType)
119+
public void Ctor_Width(int? width, Type? expectedArgumentExceptionType)
120120
=> Assert.That(
121121
() => new PluginGraphAttributes(
122122
title: "title",

0 commit comments

Comments
 (0)