Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 50d0424

Browse files
authored
Fix the expectChar() error text. (#3)
1 parent 42cb2dc commit 50d0424

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

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

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

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)