Skip to content

Commit

Permalink
Update fiber.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobambini committed Aug 2, 2018
1 parent d1fdcc1 commit abe3b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/fiber.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ A Fiber is created with `create`:

```swift
Fiber.create( {
System.print("/(self) is the current fiber")
System.print("\(self) is the current fiber")
})
```
and executed till the next `yield` with `fiber.call()`

```swift
var closure = {
System.print("1")
System.print("1")
Fiber.yield()

System.print("2")
Expand Down

0 comments on commit abe3b59

Please sign in to comment.