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

Commit

Permalink
Fix the expectChar() error text. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Nov 2, 2016
1 parent 42cb2dc commit 50d0424
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1

* Fix the error text emitted by `StringScanner.expectChar()`.

## 1.0.0

* **Breaking change**: `StringScanner.error()`'s `length` argument now defaults
Expand Down
2 changes: 1 addition & 1 deletion lib/src/string_scanner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class StringScanner {
}
}

_fail('Expected $name.');
_fail(name);
}

/// If [pattern] matches at the current position of the string, scans forward
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: string_scanner
version: 1.0.0
version: 1.0.1
author: "Dart Team <[email protected]>"
homepage: https://github.com/dart-lang/string_scanner
description: >
Expand Down

0 comments on commit 50d0424

Please sign in to comment.