8000 Fix imports in futures/promises overviews · asgs/scala.github.com@154839b · GitHub
[go: up one dir, main page]

Skip to content

Commit 154839b

Browse files
committed
Fix imports in futures/promises overviews
1 parent 5f3ff37 commit 154839b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ja/overviews/core/futures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ Promise の `p` は `p.future` によって返される Future を完了させ
568568
ある計算が値を生産し、別の計算がそれを消費する Producer-Consumer の具体例を使って説明しよう。
569569
この値の受け渡しは Promise を使って実現している。
570570

571-
import scala.concurrent.{ future, promise }
571+
import scala.concurrent.{ future, Promise }
572572
import scala.concurrent.ExecutionContext.Implicits.global
573573

574574
val p = Promise[T]()

overviews/core/_posts/2012-09-20-futures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ Consider the following producer-consumer example, in which one computation
887887
produces a value and hands it off to another computation which consumes
888888
that value. This passing of the value is done using a promise.
889889

890-
import scala.concurrent.{ future, promise }
890+
import scala.concurrent.{ Future, Promise }
891891
import scala.concurrent.ExecutionContext.Implicits.global
892892

893893
val p = Promise[T]()

sips/completed/_posts/2012-01-21-futures-promises.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ may be the case that `p.future == p`.
554554

555555
Consider the following producer-consumer example:
556556

557-
import scala.concurrent.{ future, promise }
557+
import scala.concurrent.{ future, Promise }
558558

559559
val p = Promise[T]()
560560
val f = p.future

zh-cn/overviews/core/futures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ ExecutionException-当因为一个未处理的中断异常、错误或者`scala.
388388

389389
考虑下面的生产者 - 消费者的例子,其中一个计算产生一个值,并把它转移到另一个使用该值的计算。这个传递中的值通过一个promise来完成。
390390

391-
import scala.concurrent.{ future, promise }
391+
import scala.concurrent.{ future, Promise }
392392
import scala.concurrent.ExecutionContext.Implicits.global
393393

394-
val p = promise[T]
394+
val p = Promise[T]()
395395
val f = p.future
396396

397397
val producer = future {

0 commit comments

Comments
 (0)
0