Skip to content

Commit b1a87f0

Browse files
committed
Reword message slightly
1 parent e16b4be commit b1a87f0

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/fsharp/FSStrings.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@
970970
<value>This rule will never be matched</value>
971971
</data>
972972
<data name="ValNotMutable" xml:space="preserve">
973-
<value>This value is not mutable. If you intend to mutate this value, declare it using the mutable keyword, e.g. 'let mutable {0} = expression'.</value>
973+
<value>This value is not mutable. Consider using the mutable keyword, e.g. 'let mutable {0} = expression'.</value>
974974
</data>
975975
<data name="ValNotLocal" xml:space="preserve">
976976
<value>This value is not local</value>

tests/fsharpqa/Source/Diagnostics/General/MutatingImmutable01.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #Regression #Diagnostics
22
// Regression test for FSHARP1.0:6135
3-
//<Expects status="error" span="(11,5-11,43)" id="FS0027">This value is not mutable. If you intend to mutate this value, declare it using the mutable keyword, e.g. 'let mutable m_cts = expression'.</Expects>
3+
//<Expects status="error" span="(11,5-11,43)" id="FS0027">This value is not mutable. Consider using the mutable keyword, e.g. 'let mutable m_cts = expression'.</Expects>
44

55

66
open System.Threading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// #Regression #Diagnostics
22
// Regression test for FSHARP1.0:6135
33

4-
//<Expects status="error" span="(7,1-7,8)" id="FS0027">This value is not mutable. If you intend to mutate this value, declare it using the mutable keyword, e.g. 'let mutable x = expression'.</Expects>
4+
//<Expects status="error" span="(7,1-7,8)" id="FS0027">This value is not mutable. Consider using the mutable keyword, e.g. 'let mutable x = expression'.</Expects>
55

66
let x = null
77
x <- ""

tests/fsharpqa/Source/Warnings/AssingmentOnImmutable.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// #Warnings
2-
//<Expects status="Error" span="(5,1)" id="FS0027">This value is not mutable. If you intend to mutate this value, declare it using the mutable keyword, e.g. 'let mutable x = expression'.</Expects>
2+
//<Expects status="Error" span="(5,1)" id="FS0027">This value is not mutable. Consider using the mutable keyword, e.g. 'let mutable x = expression'.</Expects>
33

44
let x = 10
55
x <- 20

0 commit comments

Comments
 (0)