Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 422f760

Browse files
committed
Update README.md
1 parent 7a5ee20 commit 422f760

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async fn main() {
2727
let token = std::env::var("COOKIE").expect("cookie doesn't set");
2828

2929
// Create a new LeetCode client
30-
let api = UserApi::new(&token);
30+
let api = UserApi::new(&token).await.unwrap();
3131

3232
// Show found problems by keyword and show 5 notes
3333
let show_problems = api.show_tasks_list("sum", 5).await.unwrap();
@@ -104,4 +104,5 @@ COOKIE="csrftoken=gN3mmFEKoBFHLZuiHEvZYupqirq7brDmi845GhUK8xBa9u3SUVkgTPFTPsLFuA
104104
```
105105

106106
### License
107-
This library is licensed under the `MIT License`.
107+
This library is licensed under the `MIT License`.
108+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /