Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in format strings #2853

Merged
merged 1 commit into from Mar 16, 2017
Merged

Fix typos in format strings #2853

merged 1 commit into from Mar 16, 2017

Conversation

sergeybykov
Copy link
Contributor

Fix for #2845.

@@ -279,7 +279,7 @@ protected class UpdateNotificationMessage : INotificationMessage
/// <inheritdoc/>
public override string ToString()
{
return string.Format("v{0} ({1} updates by {2}) etag={2}", Version, Updates.Count, Origin, ETag);
return string.Format("v{0} ({1} updates by {2}) etag={3}", Version, Updates.Count, Origin, ETag);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK checking this in, nevertheless for string format calls (where you are eagerly formatting the string, which is not always the case when logging), it's better to replace them with interpolated strings: $"v{Version} ({Updates.Count} updates by {Origin}) etag={ETag}"

@jdom jdom merged commit de816e5 into dotnet:master Mar 16, 2017
@sergeybykov sergeybykov mentioned this pull request Mar 16, 2017
@sergeybykov sergeybykov deleted the fix-for-2845 branch March 17, 2017 15:51
jdom pushed a commit to jdom/orleans that referenced this pull request Mar 22, 2017
sergeybykov added a commit that referenced this pull request Mar 22, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants