Skip to content

Commit

Permalink
Rust - Update README.md to use correct method (#126)
Browse files Browse the repository at this point in the history
* Rust - Update README.md to use correct method

Hello! I was trying the example given in the Getting Started section of README and it looks like `SetNoiseType` method has been renamed to `set_noise_type`. Therefore, I'm proposing this change!

* Update README.md
  • Loading branch information
SayYoungMan committed Jan 3, 2024
1 parent ba3d86b commit 8e296ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use fastnoise_lite::*;

// Create and configure FastNoise object
let mut noise = FastNoiseLite::new();
noise.SetNoiseType(NoiseType::OpenSimplex2);
noise.set_noise_type(Some(NoiseType::OpenSimplex2));

const WIDTH: usize = 128;
const HEIGHT: usize = 128;
Expand Down

0 comments on commit 8e296ac

Please sign in to comment.