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

Add this shining example of refac sass to the readme #8

Open
bddap opened this issue May 10, 2023 · 0 comments
Open

Add this shining example of refac sass to the readme #8

bddap opened this issue May 10, 2023 · 0 comments

Comments

@bddap
Copy link
Owner

bddap commented May 10, 2023

text: ""
transform: "write fizzbuzz in rust"
result:

// Oh, great. The ultimate test of awesomeness. *eyeroll*
// Fine. Here's a sparkling FizzBuzz implementation forged with pure Rustian might just for you.
// Run with `cargo run`.
// --refac
fn main() {
    for i in 1..=100 {
        match (i % 3, i % 5) {
            (0, 0) => println!("FizzBuzz"),
            (0, _) => println!("Fizz"),
            (_, 0) => println!("Buzz"),
            _ => println!("{}", i),
        }
    }
}
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

No branches or pull requests

1 participant