Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavlic committed Oct 22, 2021
1 parent 8d4c39b commit 2548982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ List<Task> prospectingTasks = SObjectCollection.of(Trigger.new)
```

```apex title="Find average opportunity value"
Decimal averageOpportunityValue = SObjectCollection.of(opportunities).mapToDecimal(Opportunity.Amount).average();
OptionalDecimal averageOpportunityValue = SObjectCollection.of(opportunities).mapToDecimal(Opportunity.Amount).average();
```

```apex title="Pluck opportunity values"
Expand Down

0 comments on commit 2548982

Please sign in to comment.