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

Fix the expectChar() error text. #3

Merged
merged 1 commit into from
Nov 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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