From dcfdf12315f3c4b44e4df75aac4ca2d210e9fe35 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 25 Nov 2024 12:54:54 -0500 Subject: [PATCH] Refresh the ValueStore api description in idioms.md (#4586) There is no `Set` method, so remove that, and include `AddDefaultValue` instead. --- toolchain/docs/idioms.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolchain/docs/idioms.md b/toolchain/docs/idioms.md index 72da7d6d258f..5301ae51e49c 100644 --- a/toolchain/docs/idioms.md +++ b/toolchain/docs/idioms.md @@ -145,7 +145,8 @@ The indices typically use `IdBase`. `ValueStore`s APIs follow the shape of simple array access and mutation: - `Add` which takes a value and returns the index. -- `Set` which takes a value and index to modify. +- `AddDefaultValue` which adds a default-constructed value and returns the + index. - `Get` takes an index and returns a reference to the value (possibly a constant reference). - Other vector-like functionality, including `size` or `Reserve`