Skip to content

Commit 8fcc7cd

Browse files
committed
Fix Simplify Chinese translation of Scala Tour: by-name-parameters according to liufengyun's suggestion
1 parent 0f0e480 commit 8fcc7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_zh-cn/tour/by-name-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ next-page: annotations
1414
previous-page: operators
1515
---
1616

17-
_传名参数_ 仅在使用时进行计算。 它们与 _传值参数_ 正好相反。 要将一个参数变为传名参数,只需在它的类型前加上 `=>`
17+
_传名参数_ 仅在被使用时触发实际参数的求值运算。 它们与 _传值参数_ 正好相反。 要将一个参数变为传名参数,只需在它的类型前加上 `=>`
1818
```tut
1919
def calculate(input: => Int) = input * 37
2020
```

0 commit comments

Comments
 (0)