diff options
Diffstat (limited to 'src/sksl/ast/SkSLASTDoStatement.h')
-rw-r--r-- | src/sksl/ast/SkSLASTDoStatement.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sksl/ast/SkSLASTDoStatement.h b/src/sksl/ast/SkSLASTDoStatement.h index fc97d9e142..9a0caced1c 100644 --- a/src/sksl/ast/SkSLASTDoStatement.h +++ b/src/sksl/ast/SkSLASTDoStatement.h @@ -4,7 +4,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - + #ifndef SKSL_ASTDOSTATEMENT #define SKSL_ASTDOSTATEMENT @@ -13,7 +13,7 @@ namespace SkSL { /** - * A 'do' loop. + * A 'do' loop. */ struct ASTDoStatement : public ASTStatement { ASTDoStatement(Position position, std::unique_ptr<ASTStatement> statement, @@ -22,7 +22,7 @@ struct ASTDoStatement : public ASTStatement { , fStatement(std::move(statement)) , fTest(std::move(test)) {} - String description() const override { + SkString description() const override { return "do " + fStatement->description() + " while (" + fTest->description() + ");"; } |