Code Test
Inline
Inline code
seems to work.
Block
fn main() {
let circle = Circle::new(5.0);
println!("{}", circle.area());
}
struct Circle(f64);
const PI: f64 = 3.0; // 0/10 ragebait
impl Circle {
pub fn new(r: f64) {
Circle(r)
}
pub fn area(&self) {
self.0 * self.0 * PI
}
}
Diff
- print("Hello, Wrold!")
+ print("Hello, World!")