Skip to content

Commit e963e0f

Browse files
authored
Merge pull request #12732 from dotnet/cartermp-patch-2
Update literals formatting recommendation
2 parents 9293520 + 1dea042 commit e963e0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/fsharp/style-guide/formatting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,14 +830,14 @@ When applied to a parameter, they must be on the same line and separated by a `;
830830

831831
## Formatting literals
832832

833-
[F# literals](../language-reference/literals.md) using the `Literal` attribute should place the attribute on its own line and use camelCase naming:
833+
[F# literals](../language-reference/literals.md) using the `Literal` attribute should place the attribute on its own line and use PascalCase naming:
834834

835835
```fsharp
836836
[<Literal>]
837-
let path = __SOURCE_DIRECTORY__ + "/" + __SOURCE_FILE__
837+
let Path = __SOURCE_DIRECTORY__ + "/" + __SOURCE_FILE__
838838
839839
[<Literal>]
840-
let myUrl = "www.mywebsitethatiamworkingwith.com"
840+
let MyUrl = "www.mywebsitethatiamworkingwith.com"
841841
```
842842

843843
Avoid placing the attribute on the same line as the value.

0 commit comments

Comments
 (0)