Skip to content

Commit

Permalink
Stream.expect() default error message label
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Jan 27, 2024
1 parent d1e9499 commit 0e99086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kiss/Stream.hx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class Stream {
};
}

public function expect(whatToExpect:String, f:Void->Option<String>):String {
public function expect(whatToExpect:String="something unspecified", f:Void->Option<String>):String {
var position = position();
switch (f()) {
case Some(s):
Expand Down

0 comments on commit 0e99086

Please sign in to comment.