Contrary to popular belief, Chocolate really doesn't effect dogs. Not in small quantities that is.
In large quantities the chocolate can make the dog sick or give the dog diarrhea but if it was just a small piece of chocolate, it shouldn't hurt anything.