Skip to content

Commit

Permalink
example/service/ec2/instancesbyRegion: Fix typos in example (#1762)
Browse files Browse the repository at this point in the history
Fixed a few typos that I came across while looking at examples.
  • Loading branch information
micheldlebeau authored and jasdel committed Feb 5, 2018
1 parent f9f8469 commit 7411e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/service/ec2/instancesbyRegion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ This is an example using the AWS SDK for Go to list ec2 instances instance state


```sh
# To fetch the stopped instance of all region use below:
# To fetch the stopped and running instances of all region use below:
./filter_ec2_by_region --state running --state stopped

# To fetch the stopped and running instance for region us-west-1 and eu-west-1 use below:
# To fetch the stopped and running instances for region us-west-1 and eu-west-1 use below:
./filter_ec2_by_region --state running --state stopped --region us-west-1 --region=eu-west-1
```

Expand Down
4 changes: 2 additions & 2 deletions example/service/ec2/instancesbyRegion/instancesByRegion.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ func main() {
if err != nil {
fmt.Println("Error", err)
} else {
fmt.Printf("\n\n\nFetching instace details for region: %s with criteria: %s**\n ", region, instanceCriteria)
fmt.Printf("\n\n\nFetching instance details for region: %s with criteria: %s**\n ", region, instanceCriteria)
if len(result.Reservations) == 0 {
fmt.Printf("There is no instance for the for region %s with the matching Criteria:%s \n", region, instanceCriteria)
fmt.Printf("There is no instance for the region: %s with the matching criteria:%s \n", region, instanceCriteria)
}
for _, reservation := range result.Reservations {

Expand Down

0 comments on commit 7411e2f

Please sign in to comment.