Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix method documentation (#37140)

Mikayla Maki384ffb883f47
diff --git a/crates/settings/src/settings_store.rs b/crates/settings/src/settings_store.rs
index c8371914106..fbd0f75aefc 100644
--- a/crates/settings/src/settings_store.rs
+++ b/crates/settings/src/settings_store.rs
@@ -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>())