Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix variable name mismatch #3834

Closed
wants to merge 1 commit into from
Closed

Fix variable name mismatch #3834

wants to merge 1 commit into from

Conversation

TheAlexFuller
Copy link

In the code snippet, the variable is called absent_number, but the text refers to some_number. They should be the same name. I went with absent_number from the code.

In the code snippet, the variable is called `absent_number`, but the text refers to `some_number`. They should be the same name. I went with `absent_number` from the code.
@carols10cents
Copy link
Member

Sorry, but this is correct as-is. There are three variables in the code snippet:

let some_number = Some(5);
let some_char = Some('e');
let absent_number: Option<i32> = None;

The first variable is some_number, the second variable is some_char, and the third variable is absent_number. The text addresses each of these in the same order they appear in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants