added rustdoc comments
This commit is contained in:
parent
380ee66456
commit
080a27f77d
@ -1,5 +1,6 @@
|
||||
use fantoccini::{elements::Element, ClientBuilder, Locator};
|
||||
|
||||
/// Holds data about stackoverflow answers
|
||||
#[derive(Debug, Clone)]
|
||||
struct Answer {
|
||||
upvotes: u32,
|
||||
@ -7,7 +8,9 @@ struct Answer {
|
||||
content: String,
|
||||
}
|
||||
|
||||
// let's set up the sequence of steps we want the browser to take
|
||||
/// Get all answers from a stackoverflow domain. No error handling is done so get ready to either
|
||||
/// check your input or "note: run with `RUST_BACKTRACE=1` environment variable to display a
|
||||
/// backtrace"
|
||||
async fn get_answers(url: &str) -> Vec<Answer> {
|
||||
let c = ClientBuilder::native()
|
||||
.connect("http://localhost:4444")
|
||||
|
Loading…
x
Reference in New Issue
Block a user