Reflect infinite sequences in the regex example

The text gives an example of an infinite sequence here "Some sequences are finite, and some are infinite, like sequence of button taps" and just few lines below tries to explain sequences with a regex (which is great). However the regex was always having a terminating element (error or completion) and that contradicts the idea of an infinite sequence (which never terminates). 

What I did was to add a "?" to the terminating element in the regex example
This commit is contained in:
Marin Todorov 2015-12-15 12:12:27 +01:00
parent aeff907a8d
commit 1bfaedfec4
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ These diagrams are called marble diagrams.
If we were to specify sequence grammar as regular expression it would look something like this
**Next* (Error | Completed)**
**Next* (Error | Completed)?**
This describes the following: