Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add doc example showing query parameter extraction #291
This adds a doc test that shows how to parse the URL query into a
Motivation and Context
I found this not very well documented and hope the docs will save some time.
How Has This Been Tested?
Types of changes
Thanks for including an example. I wrote this crate as Tide was just beginning to stabilize, with the goal of coming back and adding doctests later.
As you noticed, that never happened!
I agree that it's reasonable to include a link to this example in docs for App, but I'm unsure about how to best proceed, since I'm not an expert on rustdoc.
As is, this PR already adds significant value. Maybe we open an issue on the topic of docs and interlinking? I'm willing to bet we have a bunch of cases similar to this one, across the Tide ecosystem.