Skip to content

array en vez de slice #44

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

Open
jmgbsas opened this issue Feb 4, 2016 · 0 comments
Open

array en vez de slice #44

jmgbsas opened this issue Feb 4, 2016 · 0 comments

Comments

@jmgbsas
Copy link

jmgbsas commented Feb 4, 2016

seccion 2.2
// definimos un slice con 10 elementos donde el tipo es byte
var ar = [10]byte {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'}
original
// define an array with 10 elements whose types are bytes
var ar = [10]byte {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'}

los slice van con [] en vacio si no son arrays
gracias por tu tiempo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant