Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

add RUnset example #52

Closed
wants to merge 1 commit into from
Closed

Conversation

andrideng
Copy link

@andrideng andrideng commented Oct 30, 2017

Closes #44

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 4072541 on andrideng:add-runset into 97bd93e on rlespinasse:master.

@rlespinasse rlespinasse self-assigned this Oct 30, 2017
@rlespinasse rlespinasse changed the title add runset example add RUnset example Oct 30, 2017
@rlespinasse rlespinasse self-requested a review October 30, 2017 22:22

func ExampleRUnset() {
data := []byte{0xDA, 0x99, 0xBA}
unsetData := []byte{0xAD, 0x11, 0xAB}
Copy link
Owner

Choose a reason for hiding this comment

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

unsetData can be shorter or longer than data but not the same length.
If not, the usage is pretty similar of Unset function.

data := []byte{0xDA, 0x99, 0xBA}
unsetData := []byte{0xAD, 0x11, 0xAB}
fmt.Printf("%x\n", RUnset(data, unsetData))
// Output: 8811aa
Copy link
Owner

Choose a reason for hiding this comment

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

For the ExampleUnset, Can you use the output bada55 and create the data, and unsetData to provide this output.

@rlespinasse
Copy link
Owner

@andrideng Since #hacktoberfest 2017 is close, will you try to finalize this pull-request?

@andrideng andrideng closed this Nov 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants