Skip to content

Commit 78629ee

Browse files
committed
Small fix
1 parent 3c2ed33 commit 78629ee

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/lib.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! ## Usage
88
//!
99
//! Simple example:
10-
//! ```rust,no_run
10+
//! ```ignore
1111
//! use postgrest::Postgrest;
1212
//!
1313
//! let client = Postgrest::new("https://your-postgrest-endpoint");
@@ -18,13 +18,11 @@
1818
//! .await?;
1919
//! let body = resp
2020
//! .text()
21-
//! .await();
21+
//! .await?;
2222
//! ```
2323
//!
2424
//! Using filters:
25-
//! ```rust,no_run
26-
//! # use postgrest::Postgrest;
27-
//! # let client = Postgrest::new("https://your-postgrest-endpoint");
25+
//! ```ignore
2826
//! let resp = client
2927
//! .from("your_table")
3028
//! .eq("country", "Germany")
@@ -35,9 +33,7 @@
3533
//! ```
3634
//!
3735
//! Updating a table:
38-
//! ```rust,no_run
39-
//! # use postgrest::Postgrest;
40-
//! # let client = Postgrest::new("https://your-postgrest-endpoint");
36+
//! ```ignore
4137
//! let resp = client
4238
//! .from("your_table")
4339
//! .eq("username", "soedirgo")
@@ -47,9 +43,7 @@
4743
//! ```
4844
//!
4945
//! Executing stored procedures:
50-
//! ```rust,no_run
51-
//! # use postgrest::Postgrest;
52-
//! # let client = Postgrest::new("https://your-postgrest-endpoint");
46+
//! ```ignore
5347
//! let resp = client
5448
//! .rpc("add", "{\"a\": 1, \"b\": 2}")
5549
//! .execute()

0 commit comments

Comments
 (0)