Updated doc with correct type.
auto merge of #14324 : zecozephyr/rust/docfix, r=luqmana