Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
destel committed May 29, 2024
1 parent 1f08beb commit 4e18143
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ go get github.com/destel/rill

## Example usage
A basic example demonstrating how **ForEach** can be used to process a list of items concurrently and handle errors.

[Full runnable example](https://pkg.go.dev/github.com/destel/rill#example-package-Basic)

```go
func main() {
items := rill.FromSlice([]string{"item1", "item2", "item3", "item4", "item5", "item6", "item7", "item8", "item9", "item10"}, nil)
Expand Down Expand Up @@ -351,7 +353,7 @@ func getTemperature(city string, date time.Time) (float64, error) {

## Working with slices
Rill is designed for channel based workflows, but it can also be used with slices, thanks to its ability
to do ordered processing. Example below demonstrates how you can create a **mapSLice** generic helper function that
to do ordered processing. Example below demonstrates how to create a **mapSLice** generic helper function that
does parallel slice processing. That helper is then used to fetch users from an API concurrently.

[Full runnable example](https://pkg.go.dev/github.com/destel/rill#example-package-Slices)
Expand Down

0 comments on commit 4e18143

Please sign in to comment.