# HT/source https://stackoverflow.com/questions/20532546/escape-pound-or-number-sign-in-github-issue-tracker
# test
#
# key words, character verbatime, escaping
# HT/source https://www.markdownguide.org/basic-syntax#escaping-characters
# HT/source https://stackoverflow.com/questions/20532546/escape-pound-or-number-sign-in-github-issue-tracker
# test
#
# key words, character verbatime, escaping
# HT/source https://www.markdownguide.org/basic-syntax#escaping-characters
# solution fails
[//]: # (This syntax works like a comment, and won't appear in any output.)
| echo "${PATH//:/$'\n'}" | |
| # HT 2 https://askubuntu.com/a/600028/610990 | |
| # other way to display PATH sed, tr etc https://askubuntu.com/a/600019/610990 |
| git clone https://github.com/Dr-Noob/cpufetch | |
| cd gpufetch | |
| make | |
| #HT https://itsfoss.com/cpufetch/ |
| # add rust path manually without restart terminal | |
| source $HOME/.cargo/env | |
| # alternatively adding following line to ~/.bash_profile | |
| $ export PATH="$HOME/.cargo/bin:$PATH" | |
| # HT https://www.tutorialspoint.com/rust/rust_environment_setup.htm |
| alias reboot='powershell.exe -command reboot-computer' | |
| # my own take change the alias reboot and add force | |
| alias restart='powershell.exe -command restart-computer -f' | |
| alias stop='powershell.exe -command stop-computer -f' | |
| alias reboot='runas.exe /noprofile /user:Administrator "powershell.exe -command reboot-computer"' | |
| # HT https://github.com/microsoft/WSL/issues/2533#issuecomment-392600654 |
| # make appx work in powershell 7 | |
| Import-Module -Name Appx -UseWIndowsPowershell |
| enum Message { | |
| ChangeColor(u8, u8, u8), | |
| Echo(String), | |
| Move { x: u8, y: u8 }, | |
| Quit, | |
| } | |
| struct Point { |
| ! Compiling of exercises/enums/enums3.rs failed! Please try again. Here's the output: | |
| error[E0423]: expected function, tuple struct or tuple variant, found struct variant `Message::Move` | |
| --> exercises/enums/enums3.rs:67:23 | |
| | | |
| 9 | Move { x: u8, y: u8 }, | |
| | --------------------- `Message::Move` defined here | |
| ... | |
| 67 | state.process(Message::Move(Point{ x: 10, y: 15 })); | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Message::Move { x: val, y: val }` |