From 8e296acf13e73ba3bc0cc1bc151dc9d95bed0c20 Mon Sep 17 00:00:00 2001 From: Seyoung Lee Date: Wed, 3 Jan 2024 23:44:46 +0000 Subject: [PATCH] Rust - Update README.md to use correct method (#126) * 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 --- Rust/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rust/README.md b/Rust/README.md index aca1e0c..74aef11 100644 --- a/Rust/README.md +++ b/Rust/README.md @@ -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;