From 86e6628fa1edaec867ac780a5793e002a57b8c2c Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Fri, 25 Jul 2014 16:54:06 +0200 Subject: [PATCH] Doc fixes. --- source/dyaml/scanner.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/dyaml/scanner.d b/source/dyaml/scanner.d index a84c1e6..a0f35e3 100644 --- a/source/dyaml/scanner.d +++ b/source/dyaml/scanner.d @@ -1309,7 +1309,7 @@ final class Scanner /// Scan a qouted flow scalar token with specified quotes. /// - /// In case of an error, error_ is set. Check this before using the result. + /// In case of an error, error_ is set. Use throwIfError() to handle this. Token scanFlowScalar(const ScalarStyle quotes) @trusted pure nothrow { const startMark = reader_.mark; @@ -1339,7 +1339,7 @@ final class Scanner /// Assumes that the caller is building a slice in Reader, and puts the scanned /// characters into that slice. /// - /// In case of an error, error_ is set. Check this before using the result. + /// In case of an error, error_ is set. Use throwIfError() to handle this. void scanFlowScalarNonSpacesToSlice(const ScalarStyle quotes, const Mark startMark) @system pure nothrow @nogc { @@ -1439,7 +1439,7 @@ final class Scanner /// Assumes that the caller is building a slice in Reader, and puts the scanned /// spaces into that slice. /// - /// In case of an error, error_ is set. Check this before using the result. + /// In case of an error, error_ is set. Use throwIfError() to handle this. void scanFlowScalarSpacesToSlice(const Mark startMark) @system pure nothrow @nogc { @@ -1484,7 +1484,7 @@ final class Scanner /// Assumes that the caller is building a slice in Reader, and puts the scanned /// line breaks into that slice. /// - /// In case of an error, error_ is set. Check this before using the result. + /// In case of an error, error_ is set. Use throwIfError() to handle this. bool scanFlowScalarBreaksToSlice(const Mark startMark) @system pure nothrow @nogc { @@ -1517,7 +1517,7 @@ final class Scanner /// Scan plain scalar token (no block, no quotes). /// - /// In case of an error, error_ is set. Check this before using the result. + /// In case of an error, error_ is set. Use throwIfError() to handle this. Token scanPlain() @trusted pure nothrow { // We keep track of the allowSimpleKey_ flag here.