[docs] Is this sample code not too clear