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

Fix example code in README #51

Merged
merged 1 commit into from Jun 11, 2018
Merged

Fix example code in README #51

merged 1 commit into from Jun 11, 2018

Conversation

ghost
Copy link

@ghost ghost commented Jun 7, 2018

The ? syntax was used in main, but the return type didn't allow it.

Copy link
Owner

@TheNeikos TheNeikos left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Just a small change and I will merge this

README.md Outdated
@@ -46,7 +46,7 @@ extern crate rustbreak;
use std::collections::HashMap;
use rustbreak::{MemoryDatabase, deser::Ron};

fn main() {
fn main() -> Result<(), failure::Error {
Copy link
Owner

Choose a reason for hiding this comment

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

There is a missing > here.

The `?` syntax was used in `main`, but the return type didn't allow it.
@ghost
Copy link
Author

ghost commented Jun 11, 2018

Duh. I knew I shouldn't have made this commit directly on GitHub. 😅

@TheNeikos TheNeikos merged commit 1be7c4f into TheNeikos:master Jun 11, 2018
@TheNeikos
Copy link
Owner

Thanks!

@ghost ghost deleted the patch-1 branch June 11, 2018 11:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant