We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c01a678 commit 3c05acbCopy full SHA for 3c05acb
1 file changed
src/tutorial/testing.md
@@ -305,8 +305,8 @@ but we can also make our code available as a library like this:
305
1. Put the `find_matches` function into a new `src/lib.rs`.
306
2. Add a `pub` in front of the `fn` to make it something that users of
307
our library can access (i.e. `pub fn find_matches`).
308
-4. Remove `find_matches` from `src/main.rs`.
309
-5. In `fn main`, prepend the call to `find_matches` with `grrs::`
+3. Remove `find_matches` from `src/main.rs`.
+4. In `fn main`, prepend the call to `find_matches` with `grrs::`
310
so that it's now `grrs::find_matches(…)`.
311
This means it uses the function from the library we just wrote!
312
0 commit comments