-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tour: len(T) discussed before explaining #12758
Comments
Since this is in a comment in the example, it's a bit tricky to explain it in the slide itself. Also, rewriting it to something else doesn't sit very well.
How about working around it by introducing |
Looking at this again, |
I'd add a description for len saying it returns the length. |
@kytrinyx agree, let's mention len earlier. |
Makes sense, a small description was what I was looking for. Thanks On Thu, Oct 8, 2015, 8:07 AM rakyll notifications@github.com wrote:
Regards, |
len() is used in subsequent slides to explain other concepts. Fixes golang/go#12758 Change-Id: I7fd4c48bc84aa2b6d57ea4c1e24149fd3f942bca Reviewed-on: https://go-review.googlesource.com/15559 Reviewed-by: Andrew Gerrand <adg@golang.org> X-Tour-Commit: 9d789a4a34a57a0a20e92cc41f525e4e84914f34
len() is used in subsequent slides to explain other concepts. Fixes golang/go#12758 Change-Id: I7fd4c48bc84aa2b6d57ea4c1e24149fd3f942bca Reviewed-on: https://go-review.googlesource.com/15559 Reviewed-by: Andrew Gerrand <adg@golang.org> X-Tour-Commit: 9d789a4a34a57a0a20e92cc41f525e4e84914f34
len() is used in subsequent slides to explain other concepts. Fixes golang/go#12758 Change-Id: I7fd4c48bc84aa2b6d57ea4c1e24149fd3f942bca Reviewed-on: https://go-review.googlesource.com/15559 Reviewed-by: Andrew Gerrand <adg@golang.org>
Context: https://tour.golang.org/moretypes/8
In this slide we have "// missing high index implies len(s)" before even
explaining what len(T) does. Although this is quite trivial, anyone new
to programming might not understand this.
The text was updated successfully, but these errors were encountered: