Skip to content

Commit

Permalink
Rename range example to prepare for expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
eliben committed Aug 21, 2024
1 parent f7120b2 commit d51709a
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 31 deletions.
2 changes: 1 addition & 1 deletion examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Switch
Arrays
Slices
Maps
Range
Functions
Multiple Return Values
Variadic Functions
Closures
Recursion
Range over Built-in Types
Pointers
Strings and Runes
Structs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// _range_ iterates over elements in a variety of data
// structures. Let's see how to use `range` with some
// of the data structures we've already learned.
// _range_ iterates over elements in a variety of
// built-in data structures. Let's see how to
// use `range` with some of the data structures
// we've already learned.

package main

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
3d8c61f02f98892be9d3ff25d48da0bfb31bbd25
S171w0PjgsD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ go run range.go
$ go run range-over-built-in-types.go
sum: 9
index: 1
a -> apple
Expand Down
2 changes: 1 addition & 1 deletion examples/range-over-channels/range-over-channels.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// In a [previous](range) example we saw how `for` and
// In a [previous](range-over-built-in-types) example we saw how `for` and
// `range` provide iteration over basic data structures.
// We can also use this syntax to iterate over
// values received from a channel.
Expand Down
4 changes: 2 additions & 2 deletions examples/range-over-channels/range-over-channels.hash
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1812ab409c07ea4209106ee4c0d2eb597fccd717
yQMclmwOYs9
446dea3a7cb9e16ce3e17a6649c719e764936740
8vAhX6eX1wy
2 changes: 0 additions & 2 deletions examples/range/range.hash

This file was deleted.

2 changes: 1 addition & 1 deletion public/functions

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/maps

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/pointers

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions public/range → public/range-over-built-in-types

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/range-over-channels

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions public/recursion

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d51709a

Please sign in to comment.