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

libgetopts: tweak HasHarg/Occur docs #16252

Merged
merged 1 commit into from
Aug 6, 2014
Merged

libgetopts: tweak HasHarg/Occur docs #16252

merged 1 commit into from
Aug 6, 2014

Conversation

conradkleinespel
Copy link
Contributor

I found the current docs to be a little confusing. I believe this makes them straight to the point and less confusing.

Optional,
/// The option occurs once or multiple times.
/// The option occurs zero or more times.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be one or more?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it shouldn't. That's partly why I'm making this PR. With Occur set to Multi, it is allowed for the option not to show up at all. With this PR, I'm assuming that the code is correct but the docs a little outdated.

@alexcrichton
Copy link
Member

Ok, thanks! Could you squash the commits together as well?

@conradkleinespel
Copy link
Contributor Author

Done.

bors added a commit that referenced this pull request Aug 6, 2014
I found the current docs to be a little confusing. I believe this makes them straight to the point and less confusing.
@bors bors closed this Aug 6, 2014
@bors bors merged commit c74d320 into rust-lang:master Aug 6, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 8, 2024
internal: Switch to `expected.assert_eq` for `ide` tests

This PR switches from `assert_debug_eq` to `assert_eq` and only compares parts of the result and not the whole. The aim is to only compare parts which are relevant to the test and also make it more readable.

Part of rust-lang#14268.

## Questions
- [x] Can I use `Vec`? If not, what is the alternative?
    I assume I cannot because of: https://github.com/rust-lang/rust-analyzer/blob/c3a00b5468576de4e39adc8fa5ceae35a0024e49/docs/dev/architecture.md?plain=1#L413
- [x] Should I group it by file, as proposed by Lukas?
    ```
    file_id 1:
        source_file_edits:
            - Indel { insert: "foo2", delete: 4..7 }

    file_id 2:
        file_system_edits:
            MoveFile AnchoredPathBuf { anchor: FileId(2), path: "foo2.rs", }
    ```
- [x] Is it okay to ignore `CreateFile` events? They do not have a FileId, which would be problematic, but they do not occur in the existing tests, so I marked them as `unreachable!()` so far.
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.

3 participants