문서 오타수정 및 키워드 수정

This commit is contained in:
freestrings 2019-03-29 12:15:07 +09:00
parent 493839addc
commit f49da21730
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# jsonpath-lib # jsonpath_lib
[![Build Status](https://travis-ci.org/freestrings/jsonpath.svg?branch=master)](https://travis-ci.org/freestrings/jsonpath) [![Build Status](https://travis-ci.org/freestrings/jsonpath.svg?branch=master)](https://travis-ci.org/freestrings/jsonpath)
![crates.io](https://img.shields.io/crates/v/jsonpath_lib.svg) ![crates.io](https://img.shields.io/crates/v/jsonpath_lib.svg)

View File

@ -6,7 +6,7 @@
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [
"jsonpath", "jsonpath",
"native", "rust-binding",
"rust", "rust",
"json" "json"
], ],

View File

@ -296,7 +296,7 @@ pub fn read(json: &Value, path: &str) -> result::Result<Value, String> {
select(json, path) select(json, path)
} }
/// # Deprecaed. use `into_str` /// # Deprecaed. use `select_as_str`
pub fn select_str(json: &str, path: &str) -> result::Result<String, String> { pub fn select_str(json: &str, path: &str) -> result::Result<String, String> {
select_as_str(json, path) select_as_str(json, path)
} }
@ -329,7 +329,7 @@ pub fn select_as_str(json: &str, path: &str) -> result::Result<String, String> {
/// ///
/// use serde::{Deserialize, Serialize}; /// use serde::{Deserialize, Serialize};
/// ///
/// #[derive(Serialize, Deserialize, PartialEq, Debug)] /// #[derive(Deserialize, PartialEq, Debug)]
/// struct Person { /// struct Person {
/// name: String, /// name: String,
/// age: u8, /// age: u8,