Skip to content

Commit b76d864

Browse files
benluodongxuwang
andauthored
Update _zh-cn/overviews/scala3-book/ca-context-bounds.md
Co-authored-by: Dongxu Wang <dongxu@apache.org>
1 parent 2cfb6fd commit b76d864

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

9898
鉴于此背景,_上下文绑定_ 是一种简写语法,用于表达“依赖于类型参数的上下文参数”模式。
9999

100-
使用上下文绑定,`maximum` 方法可以这样写:
100+
使用上下文绑定,`maxElement` 方法可以这样写:
101101

102102
{% tabs context-bounds-max-rewritten %}
103103
{% tab 'Scala 2 and 3' %}

0 commit comments

Comments
 (0)