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

doc: Fix 'must not'/'may not' wording #8277

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Dec 19, 2017

Contribution description

I applied the following terminology and changed the wording in the doc
accordingly:

  • must not: If the parameter is of the value it must not be it either
    hits an assert or crashes the system.
  • may not: The value can be that value, but the function will return an
    error.

Issues/PRs references

Issue was brought up in #8253 (comment) and also earlier in discussions around the NIB by @cgundogan.

I applied the following terminology and changed the wording in the doc
accordingly:

* must not: If the parameter is of the value it *must not* be it either
  hits an assert or crashes the system.
* may not: The value can be that value, but the function will return an
  error.
@miri64 miri64 added Area: doc Area: Documentation Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Dec 19, 2017
@miri64
Copy link
Member Author

miri64 commented Jan 9, 2018

Ping?

@bergzand bergzand self-requested a review January 9, 2018 10:41
Copy link
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

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

not directly related questions, in general I approve the re-wording.

@@ -157,7 +157,7 @@ extern "C" {
/**
* @brief Default for DupAddrDetectTransmits
* @see [RFC 4862, section 5.1](https://tools.ietf.org/html/rfc4862#section-5.1)
* @note May not be greater than 7.
* @note Must not be greater than 7.
Copy link
Member

Choose a reason for hiding this comment

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

The reference doesn't name any max value, where does 7 come from - or did I miss that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can we focus on the topic of this PR? This is about replacing "may not" with "must not"! In the meantime I will research why that is.

Copy link
Member Author

@miri64 miri64 Jan 10, 2018

Choose a reason for hiding this comment

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

This is in fact GNRC-specific (so a follow-up should add something like […] with @ref net_gnrc).

@@ -115,7 +115,7 @@ extern "C" {
/**
* @brief Number of address registration retries
*
* @note May not be greater than 7.
* @note Must not be greater than 7.
Copy link
Member

Choose a reason for hiding this comment

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

dito here, I haven't found any reference on a maximum RFC 6775, 3.3:

The response to an address registration might not be immediate, since
in route-over configurations the 6LR might perform Duplicate Address
Detection against the 6LBR. A host retransmits the Address
Registration Option until it is acknowledged by the receipt of an
Address Registration Option.

Copy link
Member Author

Choose a reason for hiding this comment

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

(The same answer as for #8277 (comment) applies here)

@smlng
Copy link
Member

smlng commented Jan 10, 2018

Can we focus on the topic of this PR?

Sure, as said:

not directly related questions, in general I approve the re-wording

miri64 added a commit to miri64/RIOT that referenced this pull request Jan 10, 2018
In RIOT-OS#8277 it was noted the doc of generic ND definitions refers to
GNRC-specific behavior. This is now clarified with this fix.
miri64 added a commit to miri64/RIOT that referenced this pull request Jan 10, 2018
In RIOT-OS#8277 it was noted the doc of general ND definitions refers to
GNRC-specific behavior. This is now clarified with this fix.
@miri64
Copy link
Member Author

miri64 commented Jan 10, 2018

@smlng see #8346

Copy link
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

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

ACK

@smlng smlng added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jan 10, 2018
@miri64 miri64 merged commit 4013adc into RIOT-OS:master Jan 10, 2018
@miri64 miri64 deleted the doc/fix/must-not-may-not-wording branch January 10, 2018 19:34
miri64 added a commit to miri64/RIOT that referenced this pull request Jan 10, 2018
In RIOT-OS#8277 it was noted the doc of general ND definitions refers to
GNRC-specific behavior. This is now clarified with this fix.
@aabadie aabadie added this to the Release 2018.01 milestone Jan 18, 2018
panail pushed a commit to panail/RIOT that referenced this pull request Oct 29, 2018
In RIOT-OS#8277 it was noted the doc of general ND definitions refers to
GNRC-specific behavior. This is now clarified with this fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants