Skip to content

Commit 553513c

Browse files
authored
Fix the expectChar() error text. (dart-archive/string_scanner#3)
1 parent 579891a commit 553513c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

pkgs/string_scanner/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1
2+
3+
* Fix the error text emitted by `StringScanner.expectChar()`.
4+
15
## 1.0.0
26

37
* **Breaking change**: `StringScanner.error()`'s `length` argument now defaults

pkgs/string_scanner/lib/src/string_scanner.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class StringScanner {
116116
}
117117
}
118118

119-
_fail('Expected $name.');
119+
_fail(name);
120120
}
121121

122122
/// If [pattern] matches at the current position of the string, scans forward

pkgs/string_scanner/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: string_scanner
2-
version: 1.0.0
2+
version: 1.0.1
33
author: "Dart Team <[email protected]>"
44
homepage: https://github.com/dart-lang/string_scanner
55
description: >

0 commit comments

Comments
 (0)