Skip to content

Confusing article text #14082

Closed
Closed

Description

@andyste1

Near the start of the section "Examine Survey Responses", the article states "Because surveyResponses is a non-nullable reference type, no checks are necessary before de-referencing it", however surveyResponses has been declared as nullable in an earlier code snippet. This also means that the second line in the code snippet ("public string Answer(int index) => surveyResponses.GetValueOrDefault(index, "No answer")!;") should be checking for surveyResponse being null.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Activity

  1. added and removed
    ⌚ Not Triaged
    on Sep 3, 2019
  2. added this to the September 2019 milestone on Sep 3, 2019
  3. BillWagner commented on Sep 3, 2019

    @BillWagner
    Member

    Thanks for writing this up @andyste1

    You're correct, this portion of the article does need to change. I've added it to this month's sprint.

  4. self-assigned this
    on Sep 4, 2019
  5. added a commit that references this issue on Sep 30, 2019
  6. MaxTranced commented on Oct 1, 2019

    @MaxTranced
    Contributor

    Um.... N00bish, I cannot figure out how to submit a PR with MaxTranced@6319bcb

  7. BillWagner commented on Oct 1, 2019

    @BillWagner
    Member

    @MaxTranced Thanks for doing the work for the fix.

    From this page You should see a button that says "new pull request". From there, you can edit the pull request title and description, then click "Submit".

    Thanks for working to help us improve our docs!

  8. added a commit that references this issue on Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions