From 78629ee1473a14ecdd36c1cb7fee760cfcacdaab Mon Sep 17 00:00:00 2001 From: Bobbie Soedirgo Date: Mon, 25 May 2020 00:15:48 +0800 Subject: [PATCH] Small fix --- src/lib.rs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5c40652..2f91140 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,7 +7,7 @@ //! ## Usage //! //! Simple example: -//! ```rust,no_run +//! ```ignore //! use postgrest::Postgrest; //! //! let client = Postgrest::new("https://your-postgrest-endpoint"); @@ -18,13 +18,11 @@ //! .await?; //! let body = resp //! .text() -//! .await(); +//! .await?; //! ``` //! //! Using filters: -//! ```rust,no_run -//! # use postgrest::Postgrest; -//! # let client = Postgrest::new("https://your-postgrest-endpoint"); +//! ```ignore //! let resp = client //! .from("your_table") //! .eq("country", "Germany") @@ -35,9 +33,7 @@ //! ``` //! //! Updating a table: -//! ```rust,no_run -//! # use postgrest::Postgrest; -//! # let client = Postgrest::new("https://your-postgrest-endpoint"); +//! ```ignore //! let resp = client //! .from("your_table") //! .eq("username", "soedirgo") @@ -47,9 +43,7 @@ //! ``` //! //! Executing stored procedures: -//! ```rust,no_run -//! # use postgrest::Postgrest; -//! # let client = Postgrest::new("https://your-postgrest-endpoint"); +//! ```ignore //! let resp = client //! .rpc("add", "{\"a\": 1, \"b\": 2}") //! .execute()