Is there an issue with the Randomized Fields example in the UVM Cookbook?

In the latest UVM Cookbook, for the Exploiting The Sequence As An Object, Randomized Fields example at the following URL

https://verificationacademy.com/cookbook/sequences/generation

The for loop is using i < transfer_size -1. Shouldn’t this be i < transfer size or am I missing something?

 // Fill the buffer
  for(int i = 0; i < transfer_size-1; i++) begin

You are right. They should correct it.

for(int i = 0; i <= transfer_size-1; i++) begin
or
for(int i = 0; i < transfer_size; i++) begin

In reply to kireeti1192:

Thanks @kireeti1192

Mentor, can you update this in the cookbook?