Skip to content

Commit

Permalink
fix hidden code in quickstart example
Browse files Browse the repository at this point in the history
code is only hidden when prefixed by `#` followed by a space, so the `struct` and `impl` lines were showing up in the rendered docs.
  • Loading branch information
radix authored and theduke committed Feb 25, 2018
1 parent 6736620 commit ab51174
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ resolvers, which you will use for the `Query` and `Mutation` roots.

use juniper::{FieldResult};

#struct DatabasePool;
#impl DatabasePool {
# fn get_connection(&self) -> FieldResult<DatabasePool> { Ok(DatabasePool) }
# fn find_human(&self, id: &str) -> FieldResult<Human> { Err("")? }
# fn insert_human(&self, human: &NewHuman) -> FieldResult<Human> { Err("")? }
# }
# struct DatabasePool;
# impl DatabasePool {
# fn get_connection(&self) -> FieldResult<DatabasePool> { Ok(DatabasePool) }
# fn find_human(&self, id: &str) -> FieldResult<Human> { Err("")? }
# fn insert_human(&self, human: &NewHuman) -> FieldResult<Human> { Err("")? }
# }


use juniper::{FieldResult};
Expand Down

0 comments on commit ab51174

Please sign in to comment.