Skip to content

chore: syntax #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Each memory must belong to only one stable structure.
For example, this fails when run in a canister:


```no_run
```rust,no_run
use ic_stable_structures::{BTreeMap, DefaultMemoryImpl};
let mut map_1: BTreeMap<u64, u64, _> = BTreeMap::init(DefaultMemoryImpl::default());
let mut map_2: BTreeMap<u64, u64, _> = BTreeMap::init(DefaultMemoryImpl::default());
Expand Down Expand Up @@ -155,7 +155,7 @@ However, it's important to note that if you also intend to perform serialization
Stable structures requires strong guarantees to work reliably and scale over millions of operations. To that extent, we use fuzzing to emulate such operations on the available data structures.

To run a fuzzer locally,
```sh
```bash
rustup toolchain install nightly
cargo install cargo-fuzz

Expand Down
2 changes: 1 addition & 1 deletion examples/src/quick_start/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ An example that showcases how you can incorporate stable structures, and specifi

Example usage:

```
```bash
dfx start --background --clean

# Insert some data into the quick_start canister.
Expand Down
2 changes: 1 addition & 1 deletion src/btreemap/proptests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fn comprehensive(#[strategy(pvec(operation_strategy(), 100..5_000))] ops: Vec<Op

// A comprehensive fuzz test that runs until it's explicitly terminated. To run:
//
// ```
// ```shell
// cargo t comprehensive_fuzz -- --ignored --nocapture 2> comprehensive_fuzz.log
// ```
//
Expand Down
2 changes: 1 addition & 1 deletion src/memory_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//!
//! Example Usage:
//!
//! ```
//! ```rust
//! use ic_stable_structures::{DefaultMemoryImpl, Memory};
//! use ic_stable_structures::memory_manager::{MemoryManager, MemoryId};
//!
Expand Down