Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting accidental escape characters #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cjglo
Copy link

@cjglo cjglo commented Sep 11, 2024

It seems that some escape characters were copied in the README and the highlighted MarkDown isn't showing its messing with the strings.

First example when run currently:

$ cargo run
   Compiling tracker v0.1.0 (/mydirectory)
error: unknown start of token: \
 --> src/main.rs:9:68
  |
9 |     let response = tokio_test::block_on(provider.get_latest_quotes(\"AAPL\", \"1d\")).unwrap();
  |                                                                    ^

error[E0765]: unterminated double quote string
  --> src/main.rs:9:69
   |
9  |       let response = tokio_test::block_on(provider.get_latest_quotes(\"AAPL\", \"1d\")).unwrap();
   |  _____________________________________________________________________^
10 | |     // extract just the latest valid quote summery
11 | |     // including timestamp,open,close,high,low,volume
12 | |     let quote = response.last_quote().unwrap();
...  |
15 | |     println!(\"At {} quote price of Apple was {}\", time, quote.close);
16 | | }
   | |_^

Edited version:

$ cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s
     Running `target/debug/tracker`
At 2024-09-10 13:30:00.0 +00:00:00 quote price of Apple was 220.11000061035156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant