Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
devashishdxt committed Jan 10, 2022
1 parent 314a8e8 commit 6b4a77e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ bin/
pkg/
wasm-pack.log
www/
.cargo-ok
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rexie = "0.1"

### Example

To create a new database, you can use the [`Rexie::builder`] method:
To create a new database, you can use the `Rexie::builder` method:

```rust
use rexie::*;
Expand Down Expand Up @@ -46,7 +46,7 @@ async fn build_database() -> Result<Rexie> {
}
```

To add an employee, you can use the [`Store::add`] method after creating a [`Transaction`]:
To add an employee, you can use the `Store::add` method after creating a `Transaction`:

```rust
use rexie::*;
Expand All @@ -68,7 +68,7 @@ async fn add_employee(rexie: &Rexie, name: &str, email: &str) -> Result<u32> {
}
```

To get an employee, you can use the [`Store::get`] method after creating a [`Transaction`]:
To get an employee, you can use the `Store::get` method after creating a `Transaction`:

```rust
use rexie::*;
Expand Down

0 comments on commit 6b4a77e

Please sign in to comment.