Skip to content

Commit f99e9e0

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

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
@@ -38,7 +38,7 @@ def maxElement[A](as: List[A])(using ord: Ord[A]): A =
3838

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

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

4444
{% tabs context-bounds-max-ord class=tabs-scala-version %}

0 commit comments

Comments
 (0)