We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72eccab commit f99e9e0Copy full SHA for f99e9e0
_zh-cn/overviews/scala3-book/ca-context-bounds.md
@@ -38,7 +38,7 @@ def maxElement[A](as: List[A])(using ord: Ord[A]): A =
38
39
上面这个 `maxElement` 方法只接受一个类型为 `Ord[A]` 的 _上下文参数_ 并将其作为实参传给 `max` 方法。
40
41
-为了完整起见,以下是 `max` 和 `Ord` 的定义(请注意,在实践中我们会在 `List` 上使用现有的方法 `max`,
+完整起见,以下是 `max` 和 `Ord` 的定义(注意,在实践中我们会使用 `List` 中已有的 `max` 方法 ,
42
但我们为了说明目的而编造了这个例子):
43
44
{% tabs context-bounds-max-ord class=tabs-scala-version %}
0 commit comments