aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-11 11:05:56 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-01-11 11:05:56 -0800
commit6fe6a15fe526b08010ff3e6acaf52d3665d34d6b (patch)
tree34ab49b71a633af94afec7adee6b7e7334c4b901
parentaf2c45147d020b3280cc81d4a94973d8f1bf4816 (diff)
parent67107034fcff4657a43104397bb2726b2ae502a2 (diff)
downloadmilf-rs-6fe6a15fe526b08010ff3e6acaf52d3665d34d6b.tar.gz
milf-rs-6fe6a15fe526b08010ff3e6acaf52d3665d34d6b.zip
Merge pull request #82 from shepmaster/patch-1
Minor documentation grammar fix
-rw-r--r--src/decoder/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs
index 50a781c..7c444e0 100644
--- a/src/decoder/mod.rs
+++ b/src/decoder/mod.rs
@@ -82,7 +82,8 @@ pub fn decode<T: ::serde::Deserialize>(toml: Value) -> Option<T> {
/// Decodes a string into a toml-encoded value.
///
/// This function will parse the given string into a TOML value, and then parse
-/// the TOML value into the desired type. If any error occurs `None` is return.
+/// the TOML value into the desired type. If any error occurs, `None` is
+/// returned.
///
/// If more fine-grained errors are desired, these steps should be driven
/// manually.
@@ -94,7 +95,8 @@ pub fn decode_str<T: ::rustc_serialize::Decodable>(s: &str) -> Option<T> {
/// Decodes a string into a toml-encoded value.
///
/// This function will parse the given string into a TOML value, and then parse
-/// the TOML value into the desired type. If any error occurs `None` is return.
+/// the TOML value into the desired type. If any error occurs, `None` is
+/// returned.
///
/// If more fine-grained errors are desired, these steps should be driven
/// manually.