Remove unessesary $ and fix some typos #305
Merged
+8
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Spotted these while browsing the code.
Summary of Changes
This pull request includes several changes to improve code readability and consistency in the
ModelContextProtocol
project. The changes primarily involve removing unnecessary string interpolation and correcting spelling in comments.Error message improvements:
src/ModelContextProtocol/Client/McpClient.cs
: Removed unnecessary string interpolation fromInvalidOperationException
messages in theMcpClient
constructor. [1] [2]src/ModelContextProtocol/Server/AIFunctionMcpServerPrompt.cs
: Removed unnecessary string interpolation from anInvalidOperationException
message in theGetAsync
method.Comment and documentation improvements:
src/ModelContextProtocol/Client/McpClientExtensions.cs
: Corrected the spelling of "requerying" to "re-querying" in multiple comments. [1] [2] [3] [4]Code simplification:
src/ModelContextProtocol/Protocol/Messages/ProgressToken.cs
: Simplified theToString
method by removing unnecessary string interpolation.