Skip to content

Commit c0a7f0f

Browse files
committed
Update YAMLFile javadoc
1 parent 24c83b8 commit c0a7f0f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/me/croabeast/file/YAMLFile.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@
2929
* Usage example:
3030
* <pre><code>
3131
* // Create a new YAMLFile instance for "config.yml" in the default folder:
32-
* YAMLFile yamlFile = new YAMLFile(plugin, "config");
32+
* YAMLFile file = new YAMLFile(plugin, "config");
3333
*
3434
* // Set custom resource path if needed:
35-
* yamlFile.setResourcePath("config.yml");
35+
* file.setResourcePath("config.yml");
3636
*
3737
* // Save defaults if the file does not exist:
38-
* yamlFile.saveDefaults();
38+
* file.saveDefaults();
3939
*
4040
* // Retrieve and modify the configuration:
41-
* FileConfiguration config = yamlFile.getConfiguration();
41+
* FileConfiguration config = file.getConfiguration();
4242
* config.set("setting", "value");
4343
*
4444
* // Save changes:
45-
* yamlFile.save();
45+
* file.save();
4646
*
4747
* // Update the file using the YAMLUpdater:
48-
* yamlFile.update();
48+
* file.update();
4949
* </code></pre>
5050
* </p>
5151
*

0 commit comments

Comments
 (0)