From 348076ccedfba28029c8dcafd3807171cbac3b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Kj=C3=A6rstad?= Date: Sat, 17 Jun 2023 01:49:16 +0200 Subject: [PATCH] Typo in db.md (#3213) --- docs/crates/db.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/crates/db.md b/docs/crates/db.md index a505f28ff..79f93b1ef 100644 --- a/docs/crates/db.md +++ b/docs/crates/db.md @@ -104,7 +104,7 @@ pub trait Database: for<'a> DatabaseGAT<'a> { } ``` -Any type that implements the `Database` trait can create a database transaction, as well as view or update existing transactions. As an example, lets revisit the `Transaction` struct from the `stages` crate. This struct contains a field named `db` which is a reference to a generic type `DB` that implements the `Database` trait. The `Transaction` struct can use the `db` field to store new headers, bodies and senders in the database. In the code snippet below, you can see the `Transaction::open()` method, which uses the `Database::tx_mut()` function to create a mutable transaction. +Any type that implements the `Database` trait can create a database transaction, as well as view or update existing transactions. As an example, let's revisit the `Transaction` struct from the `stages` crate. This struct contains a field named `db` which is a reference to a generic type `DB` that implements the `Database` trait. The `Transaction` struct can use the `db` field to store new headers, bodies and senders in the database. In the code snippet below, you can see the `Transaction::open()` method, which uses the `Database::tx_mut()` function to create a mutable transaction. [File: crates/stages/src/db.rs](https://github.com/paradigmxyz/reth/blob/main/crates/stages/src/db.rs#L95-L98)