Skip to content

Commit e45cecf

Browse files
authored
docs: fix sub_registry_with_prefix RustDoc (#289)
Signed-off-by: Jannik Peters <[email protected]>
1 parent 1731b8e commit e45cecf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/registry.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ impl Registry {
228228
/// let subsystem_a_counter_2: Counter = Counter::default();
229229
///
230230
/// let subsystem_a_registry = registry.sub_registry_with_prefix("subsystem_a");
231-
/// registry.register("counter_1", "", subsystem_a_counter_1.clone());
232-
/// registry.register("counter_2", "", subsystem_a_counter_2.clone());
231+
/// subsystem_a_registry.register("counter_1", "", subsystem_a_counter_1.clone());
232+
/// subsystem_a_registry.register("counter_2", "", subsystem_a_counter_2.clone());
233233
///
234234
/// let subsystem_b_counter_1: Counter = Counter::default();
235235
/// let subsystem_b_counter_2: Counter = Counter::default();
236236
///
237-
/// let subsystem_a_registry = registry.sub_registry_with_prefix("subsystem_b");
238-
/// registry.register("counter_1", "", subsystem_b_counter_1.clone());
239-
/// registry.register("counter_2", "", subsystem_b_counter_2.clone());
237+
/// let subsystem_b_registry = registry.sub_registry_with_prefix("subsystem_b");
238+
/// subsystem_b_registry.register("counter_1", "", subsystem_b_counter_1.clone());
239+
/// subsystem_b_registry.register("counter_2", "", subsystem_b_counter_2.clone());
240240
/// ```
241241
///
242242
/// See [`Registry::sub_registry_with_label`] for the same functionality,

0 commit comments

Comments
 (0)