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

Updated README to show correct usage of Set command #10

Merged
merged 1 commit into from
Mar 21, 2022
Merged

Updated README to show correct usage of Set command #10

merged 1 commit into from
Mar 21, 2022

Conversation

varunu28
Copy link
Contributor

@varunu28 varunu28 commented Mar 20, 2022

Issue
Set API doesn't returns 3 values as mentioned in the documentation. It just returns an error instance.

func (tx *Tx) Set(key string, value string) error {
	e := newRecord([]byte(key), []byte(value), StringRecord, StringSet)
	tx.addRecord(e)

	return nil
}

Changes
Updating the documentation to reflect the correct usage of Set API

@varunu28 varunu28 changed the title Updated README to show correct usage of Update command Updated README to show correct usage of Set command Mar 20, 2022
@arriqaaq
Copy link
Owner

Thank you for the fix, appreciate it

@arriqaaq arriqaaq merged commit 47d923c into arriqaaq:main Mar 21, 2022
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