Skip to content

Commit 727b3f6

Browse files
committed
Fix typos
1 parent e7873d4 commit 727b3f6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Dart Tiled library.
66

77
## Install from Dart Pub Repository
88

9-
To include the package as a depencency in your `pubspec.yaml`, run the following (or add it manually):
9+
To include the package as a dependency in your `pubspec.yaml`, run the following (or add it manually):
1010

1111
```sh
1212
dart pub add tiled
@@ -29,7 +29,7 @@ Load a TMX file into a string by any means, and then pass the string to TileMapP
2929
final TiledMap mapTmx = TileMapParser.parseTmx(tmxBody);
3030
```
3131

32-
If your tmx file includes a external tsx reference, you have to add a CustomParser
32+
If your tmx file includes an external tsx reference, you have to add a CustomParser
3333
```dart
3434
class CustomTsxProvider extends TsxProvider {
3535
@override

packages/tiled/lib/src/common/property.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class IntProperty extends Property<int> {
195195
}) : super(type: PropertyType.int);
196196
}
197197

198-
/// [value] is the double-percision floating-point number
198+
/// [value] is the double-precision floating-point number
199199
class FloatProperty extends Property<double> {
200200
FloatProperty({
201201
required super.name,

packages/tiled/lib/src/objects/tiled_object.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class TiledObject {
109109
final gid = parser.getIntOrNull('gid');
110110
final name = parser.getString('name', defaults: '');
111111

112-
// Tiled 1.9 and above versions running in compatibilty mode set to
112+
// Tiled 1.9 and above versions running in compatibility mode set to
113113
// "Tiled 1.8" will still write out "Class" property as "type". So try both
114114
// before using default value.
115115
final type = parser.getString(

packages/tiled/lib/src/tsx_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ abstract class TsxProvider {
1010
Parser getSource(String filename);
1111

1212
/// Used when provider implementations cache the data. Returns the cached
13-
/// data for the exernal tileset.
13+
/// data for the external tileset.
1414
Parser? getCachedSource();
1515

1616
/// Parses a file returning a [TsxProvider].

packages/tiled/test/map_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ void main() {
125125

126126
test('errors if tile phrase is not in the correct format', () {
127127
expect(
128-
() => map.tileByPhrase('Nonexistant Tile'),
128+
() => map.tileByPhrase('Nonexistent Tile'),
129129
throwsArgumentError,
130130
);
131131
});
132132

133133
test('errors if tileset is not present', () {
134134
expect(
135-
() => map.tileByPhrase('Nonexistant Tile|0'),
135+
() => map.tileByPhrase('Nonexistent Tile|0'),
136136
throwsArgumentError,
137137
);
138138
});

0 commit comments

Comments
 (0)