From 9fbde574ddc56c130d4be26fa34e68c0b0e7afdd Mon Sep 17 00:00:00 2001 From: Dariusz Depta Date: Wed, 5 Feb 2025 16:50:13 +0100 Subject: [PATCH] Updates. --- src/pages/cw-multi-test/storage.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/cw-multi-test/storage.mdx b/src/pages/cw-multi-test/storage.mdx index 4481e5d5..4032a775 100644 --- a/src/pages/cw-multi-test/storage.mdx +++ b/src/pages/cw-multi-test/storage.mdx @@ -50,21 +50,21 @@ let app = App::default(); let app = AppBuilder::default().build(no_init); ``` -The [`App{:rust}`][App] provides several methods to access and manipulate storage, all of which are -covered in the [Accessing storage in tests](#accessing-storage-in-tests) section. +The [`App{:rust}`][App] provides several methods to access and manipulate the storage, all of which +are covered in the [Accessing storage in tests](#accessing-storage-in-tests) section. ## Custom storage If the default storage does not fully meet your testing requirements, you can provide a custom storage by implementing the [Storage] trait. Only the `get{:rust}`, `set{:rust}`,`remove{:rust}` and `range{:rust}` methods are required, as the trait already provides a basic implementation for -`range_keys{:rust}` and `range_values{:rust}`. The table below summarizes all these methods. +`range_keys{:rust}` and `range_values{:rust}` methods. The table below summarizes all these methods. | Methods of [Storage] trait | Description | | ------------------------------------- | ------------------------------------------------------------------------- | -| [`get{:rust}`][get] | Returns a value associated with specified key. | -| [`set{:rust}`][set] | Sets a new value for specified key. | -| [`remove{:rust}`][remove] | Removes an entry with specified key. | +| [`get{:rust}`][get] | Returns a value associated with a specified key. | +| [`set{:rust}`][set] | Sets a new value for a specified key. | +| [`remove{:rust}`][remove] | Removes an entry with a specified key. | | [`range{:rust}`][range] | Iterates over a set of **key/value** pairs, either forwards or backwards. | | [`range_keys{:rust}`][range_keys] | Iterates over a set of **keys**, either forwards or backwards. | | [`range_values{:rust}`][range_values] | Iterates over a set of **values**, either forwards or backwards. |