Fix method documentation (#37140)

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2025-08-29 04:07:52 +00:00
committed by GitHub
parent c3ccdc0b44
commit 384ffb883f
+1 -2
View File
@@ -421,8 +421,7 @@ impl SettingsStore {
/// Get the value of a setting.
///
/// Panics if the given setting type has not been registered, or if there is no
/// value for this setting.
/// Does not panic
pub fn try_get<T: Settings>(&self, path: Option<SettingsLocation>) -> Option<&T> {
self.setting_values
.get(&TypeId::of::<T>())