Fixed the capacity assertion for reserve & reserve_exact doc examples