From 36d58466702e2a2fc23ab45828f59b7e6cbdef8d Mon Sep 17 00:00:00 2001 From: jace-ys Date: Mon, 1 Mar 2021 16:44:20 +0800 Subject: [PATCH] Fix documentation format --- Cargo.toml | 2 +- README.md | 2 +- src/lib.rs | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2c04140..1545f7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "redsync" -version = "0.1.1" +version = "0.1.2" authors = ["jace-ys "] edition = "2018" description = "A Rust implementation of Redlock for distributed locks with Redis" diff --git a/README.md b/README.md index 760af57..d16fbc0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add the following line to your Cargo.toml file: ```toml [dependencies] -redsync = "0.1.1" +redsync = "0.1.2" ``` ## Documentation diff --git a/src/lib.rs b/src/lib.rs index 31ba7ba..affc4cc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,14 +1,15 @@ //! # Installation //! //! Add the following line to your Cargo.toml file: -//! ``` +//! +//! ```toml //! [dependencies] -//! redsync = "0.1.1" +//! redsync = "0.1.2" //! ``` //! //! # Quick Start //! -//! ``` +//! ```rust //! use std::error::Error; //! use std::time::Duration; //! use redsync::{RedisInstance, Redsync};