2 ms·
thank you for the feedback! It's really helpful. copy's arguments are like copy(destination, source) so we're copying the string into the buffer. Also, copy wi
by eat_veggies 7y ago
thank you for the feedback! It's really helpful.
copy's arguments are like copy(destination, source) so we're copying the string into the buffer. Also, copy will never overflow because it will only copy up to the length of the shortest buffer.
you're right about the unnecessary cast to []byte -- that function used to take a string as arguments, and when I changed it, I didn't change the rest of it. I've removed it.