From 271fe448c68b188cfd592b159c69ff1e51c74a53 Mon Sep 17 00:00:00 2001 From: bluurryy <164359728+bluurryy@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:40:07 +0200 Subject: [PATCH] doc: don't mention `Drain` specifically in the feature docs --- Cargo.toml | 4 ++-- README.md | 4 ++-- src/lib.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b623d81..45e197d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,10 +46,10 @@ nightly-coerce-unsized = [] ## Makes `Bump::unallocated` a `const fn`. nightly-const-refs-to-static = [] -## Implements `is_empty` manually for `Drain`. +## Implements `is_empty` manually for some iterators. nightly-exact-size-is-empty = [] -## Implements `TrustedLen` for `Drain`. +## Implements `TrustedLen` for some iterators. nightly-trusted-len = [] [dev-dependencies] diff --git a/README.md b/README.md index 0494bcf..31831bf 100644 --- a/README.md +++ b/README.md @@ -168,8 +168,8 @@ assert_eq!(bump.stats().allocated(), 4); * **`nightly-coerce-unsized`** — Makes `BumpBox` implement [`CoerceUnsized`](core::ops::CoerceUnsized). With this `BumpBox<[i32;3]>` coerces to `BumpBox<[i32]>`, `BumpBox` and so on. * **`nightly-const-refs-to-static`** — Makes `Bump::unallocated` a `const fn`. -* **`nightly-exact-size-is-empty`** — Implements `is_empty` manually for `Drain`. -* **`nightly-trusted-len`** — Implements `TrustedLen` for `Drain`. +* **`nightly-exact-size-is-empty`** — Implements `is_empty` manually for some iterators. +* **`nightly-trusted-len`** — Implements `TrustedLen` for some iterators. ## Bumping upwards or downwards? Bump direction is controlled by the generic parameter `const UP: bool`. By default, `UP` is `true`, so the allocator bumps upwards. diff --git a/src/lib.rs b/src/lib.rs index 5a5c636..dae4da0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -219,8 +219,8 @@ //! * **`nightly-coerce-unsized`** — Makes `BumpBox` implement [`CoerceUnsized`](core::ops::CoerceUnsized). //! With this `BumpBox<[i32;3]>` coerces to `BumpBox<[i32]>`, `BumpBox` and so on. //! * **`nightly-const-refs-to-static`** — Makes `Bump::unallocated` a `const fn`. -//! * **`nightly-exact-size-is-empty`** — Implements `is_empty` manually for `Drain`. -//! * **`nightly-trusted-len`** — Implements `TrustedLen` for `Drain`. +//! * **`nightly-exact-size-is-empty`** — Implements `is_empty` manually for some iterators. +//! * **`nightly-trusted-len`** — Implements `TrustedLen` for some iterators. //! //! # Bumping upwards or downwards? //! Bump direction is controlled by the generic parameter `const UP: bool`. By default, `UP` is `true`, so the allocator bumps upwards.