Skip to content

Commit 72eccab

Browse files
benluodongxuwang
andauthored
Update _zh-cn/overviews/scala3-book/ca-context-bounds.md
Co-authored-by: Dongxu Wang <[email protected]>
1 parent 7225c5f commit 72eccab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_zh-cn/overviews/scala3-book/ca-context-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def maxElement[A](as: List[A])(using ord: Ord[A]): A =
3636
{% endtab %}
3737
{% endtabs %}
3838

39-
`maxElement` 方法把一个 `Ord[A]` 类的 _上下文参数_ 当作参数只传给 `max` 方法。
39+
上面这个 `maxElement` 方法只接受一个类型为 `Ord[A]` _上下文参数_ 并将其作为实参传给 `max` 方法。
4040

4141
为了完整起见,以下是 `max``Ord` 的定义(请注意,在实践中我们会在 `List` 上使用现有的方法 `max`
4242
但我们为了说明目的而编造了这个例子):

0 commit comments

Comments
 (0)