Skip to content

Commit dc9edfc

Browse files
m-rinaldipsfinaki
andauthored
Micro change in parameters-and-arguments.md (dotnet#41755)
* Micro change in parameters-and-arguments.md * Update docs/fsharp/language-reference/parameters-and-arguments.md Co-authored-by: Petr <[email protected]> --------- Co-authored-by: Petr <[email protected]>
1 parent 1d610bc commit dc9edfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/fsharp/language-reference/parameters-and-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Note that those members could perform any arbitrary work, the syntax is effectiv
124124

125125
## Optional Parameters
126126

127-
You can specify an optional parameter for a method by using a question mark in front of the parameter name. Optional parameters are interpreted as the F# option type, so you can query them in the regular way that option types are queried, by using a `match` expression with `Some` and `None`. Optional parameters are permitted only on members, not on functions created by using `let` bindings.
127+
You can specify an optional parameter for a method by using a question mark in front of the parameter name. From the callee's perspective, optional parameters are interpreted as the F# option type, so you can query them in the regular way that option types are queried, by using a `match` expression with `Some` and `None`. Optional parameters are permitted only on members, not on functions created by using `let` bindings.
128128

129129
You can pass existing optional values to method by parameter name, such as `?arg=None` or `?arg=Some(3)` or `?arg=arg`. This can be useful when building a method that passes optional arguments to another method.
130130

0 commit comments

Comments
 (0)