aboutsummaryrefslogtreecommitdiff
path: root/src/Spv.Generator/DeterministicStringKey.cs
diff options
context:
space:
mode:
authorMarco Carvalho <marcolucio27@gmail.com>2023-06-22 13:36:07 -0300
committerGitHub <noreply@github.com>2023-06-22 18:36:07 +0200
commit58907e2c290473326e5ab74bdfe1429b8a518ba4 (patch)
tree4d47637c517b0b0540e584acf4ad52d0b7b9e544 /src/Spv.Generator/DeterministicStringKey.cs
parent649d372f7da8559f8b6d74ca44af64ba7d7853c4 (diff)
GetHashCode should not reference mutable fields (#5331)1.1.899
Diffstat (limited to 'src/Spv.Generator/DeterministicStringKey.cs')
-rw-r--r--src/Spv.Generator/DeterministicStringKey.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Spv.Generator/DeterministicStringKey.cs b/src/Spv.Generator/DeterministicStringKey.cs
index 491bb745..cab4dbcc 100644
--- a/src/Spv.Generator/DeterministicStringKey.cs
+++ b/src/Spv.Generator/DeterministicStringKey.cs
@@ -5,7 +5,7 @@ namespace Spv.Generator
{
internal class DeterministicStringKey : IEquatable<DeterministicStringKey>
{
- private string _value;
+ private readonly string _value;
public DeterministicStringKey(string value)
{