Skip to content

Commit

Permalink
libtxt: fix some typos (flutter#4206)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Oct 12, 2017
1 parent 11cac67 commit b84e114
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/ui/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ enum TextAlign {
///
/// For left-to-right text ([TextDirection.ltr]), this is the left edge.
///
/// For right-to-left text ([TextDirection.rtr]), this is the right edge.
/// For right-to-left text ([TextDirection.rtl]), this is the right edge.
start,

/// Align the text on the trailing edge of the container.
///
/// For left-to-right text ([TextDirection.ltr]), this is the right edge.
///
/// For right-to-left text ([TextDirection.rtr]), this is the left edge.
/// For right-to-left text ([TextDirection.rtl]), this is the left edge.
end,
}

Expand Down
2 changes: 1 addition & 1 deletion third_party/txt/benchmarks/txt_run_all_benchmarks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, char** argv) {
txt::SetFontDir(dir);
if (txt::GetFontDir().length() <= 0) {
FXL_LOG(ERROR) << "Font directory must be specified with "
"--font-directoy=\"<directoy>\" to run this test.";
"--font-directory=\"<directory>\" to run this test.";
return EXIT_FAILURE;
}
FXL_DCHECK(txt::GetFontDir().length() > 0);
Expand Down
2 changes: 1 addition & 1 deletion third_party/txt/src/txt/paragraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using GlyphID = uint32_t;
// paragraph->Paint(<someSkCanvas>, <xpos>, <ypos>);
class Paragraph {
public:
// Constructor. I is highly recommended to construct a paragrph with a
// Constructor. It is highly recommended to construct a paragraph with a
// ParagraphBuilder.
Paragraph();

Expand Down
2 changes: 1 addition & 1 deletion third_party/txt/tests/txt_run_all_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char** argv) {
txt::SetFontDir(dir);
if (txt::GetFontDir().length() <= 0) {
FXL_LOG(ERROR) << "Font directory must be specified with "
"--font-directoy=\"<directoy>\" to run this test.";
"--font-directory=\"<directory>\" to run this test.";
return EXIT_FAILURE;
}
FXL_DCHECK(txt::GetFontDir().length() > 0);
Expand Down

0 comments on commit b84e114

Please sign in to comment.