Skip to content

Commit 83da056

Browse files
fix: minor
1 parent 066533a commit 83da056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assignment4/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Here's a step-by-step guide you can follow to accomplish this:
158158
159159
For our `binary_op`, we can provide a lambda function that takes in two `std::string::iterator`s (you might choose to use `auto` parameters for this lambda, as discussed in lecture) `it1` and `it2`, and constructs the `Token` using the aforementioned `Token { source, it1, it2 }` constructor. Note that we must pass `source` to this constructor, so you will need to capture it in the lambda function you create! **You must capture `source` by reference, if you do not, your code will not run!**
160160
161-
> **🚨 Warning 🚨**
161+
> **‼️⚠️📢🚨 Warning 🚨📢⚠️‼️**
162162
> Just repeating that last part since students have had trouble with this part in the past. **You must capture `source` by reference in your lambda function** for the `Token` constructor to work. Review our lecture slides on the lambda function capture syntax if you don't remember how to do this.
163163
164164
For the output range (`d_first`), we will first create a `std::set<Token>` to store the tokens that we find. Suppose we call that set `tokens`. Then, we can create an [`std::inserter(tokens, tokens.end())`](https://en.cppreference.com/w/cpp/iterator/inserter) to store the resulting tokens to.

0 commit comments

Comments
 (0)