code: func (s *Stream) ListEnd() error {
  	if len(s.stack) == 0 {
  		return errNotInList
  	}
  	tos := s.stack[len(s.stack)-1]
  	if tos.pos != tos.size {
  		return errNotAtEOL
  	}
  	s.stack = s.stack[:len(s.stack)-1] // pop
  	if len(s.stack) > 0 {
  		s.stack[len(s.stack)-1].pos += tos.size
  	}
  	s.kind = -1
  	s.size = 0
  	return nil
  }
docs: // ListEnd returns to the enclosing list.
  // The input reader must be positioned at the end of a list.