Rollup merge of #55406 - rick68:patch-16, r=varkor
Rollup merge of #55406 - rick68:patch-16, r=varkor

Update string.rs

remove unused variable i in example String::with_capacity()

graydon/rust,aidancully/rust,graydon/rust,graydon/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,aidancully/rust,aidancully/rust,graydon/rust,GBGamer/rust,graydon/rust,aidancully/rust,GBGamer/rust,graydon/rust,aidancully/rust