Skip to content

Commit

Permalink
vault backup: 2024-04-02 13:12:33
Browse files Browse the repository at this point in the history
Affected files:
content/notes/university/2024-04-01.md
  • Loading branch information
pietraferreira committed Apr 2, 2024
1 parent 79fa617 commit 940b2d6
Showing 1 changed file with 54 additions and 1 deletion.
55 changes: 54 additions & 1 deletion content/notes/university/2024-04-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,57 @@ Backend [here](https://dashboard.render.com/).

The backend is **chatgpt.js**, and you can see it running on Render (more specifically the logs).

Tests: `./run_comparison_tests.sh`, `unified...2` has more output!
Tests: `./run_comparison_tests.sh`, `unified...2` has more output!

---

```
fn main() { // nothing
let x;
}
fn main() { // imm 3
let x = 5;
let y = &x;
}
fn main() { //mut 3
let mut x = 5;
let y = &mut x;
}
fn main() { // nothing
let x = 5 + 2;
}
fn test() { // nothing
let x = 10;
}
fn main() { // imm 3
let x = 5;
print_value(&x);
}
fn print_value(val: &i32) {}
fn main() { // nothing
let mut x = 5;
x = 10;
}
fn main() { // own 3
let x = 5;
take_ownership(x);
}
fn take_ownership(val: i32) {}
fn main() { // nothing
let x = 5;
{
let x = x + 1;
println!("{}", x);
}
fn main() { // nothing
let x = 5.to_string();
```

0 comments on commit 940b2d6

Please sign in to comment.