未验证 提交 5f54b69c 编写于 作者: M Martin521 提交者: GitHub

Fixed bug in examples for pick and tryPick (#14080)

Co-authored-by: NKevin Ransom (msft) <codecutter@hotmail.com>
上级 434391e8
...@@ -1674,7 +1674,7 @@ module List = ...@@ -1674,7 +1674,7 @@ module List =
/// <code lang="fsharp"> /// <code lang="fsharp">
/// let input = [1; 2; 3] /// let input = [1; 2; 3]
/// ///
/// input |> List.pick (fun n -> if n > 3 = 0 then Some (string n) else None) /// input |> List.pick (fun n -> if n > 3 then Some (string n) else None)
/// </code> /// </code>
/// Throws <c>KeyNotFoundException</c>. /// Throws <c>KeyNotFoundException</c>.
/// </example> /// </example>
...@@ -2300,7 +2300,7 @@ module List = ...@@ -2300,7 +2300,7 @@ module List =
/// <code lang="fsharp"> /// <code lang="fsharp">
/// let input = [1; 2; 3] /// let input = [1; 2; 3]
/// ///
/// input |> List.tryPick (fun n -> if n > 3 = 0 then Some (string n) else None) /// input |> List.tryPick (fun n -> if n > 3 then Some (string n) else None)
/// </code> /// </code>
/// Evaluates to <c>None</c>. /// Evaluates to <c>None</c>.
/// </example> /// </example>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册