Skip to content

Commit b9f2982

Browse files
Repo AssistCopilot
authored andcommitted
Fix fsharp_max_function_binding_width docs example (issue #2912)
Replace the copied value binding example with a proper function binding example that demonstrates the setting: a function and a member method where the right-hand side expression length controls line wrapping. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 14972fa commit b9f2982

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/docs/end-users/Configuration.fsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,9 +720,10 @@ printfn
720720

721721
formatCode
722722
"""
723-
let title = "Great title of project"
724-
type MyType() =
725-
member this.HelpText = "Some help text"
723+
let printScore score total = printfn "%i / %i" score total
724+
725+
type Triangle() =
726+
member this.CalculateSurface(width: int, height: int) = width * height / 2
726727
"""
727728
"""
728729
fsharp_max_function_binding_width = 10

0 commit comments

Comments
 (0)