Skip to content

Commit d8274a7

Browse files
committed
docs: fix bad suggested methods
1 parent 372e267 commit d8274a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ where
723723
/// defined members of the output JSON. If they clash, invalid JSON with multiple fields with
724724
/// the same key may be generated.
725725
///
726-
/// It's therefore preferable to use [`with_event`](Self::with_event) instead.
726+
/// It's therefore preferable to use [`with_current_span`](Self::with_current_span) instead.
727727
pub fn with_top_level_flattened_current_span(&mut self) -> &mut Self {
728728
self.flattened_values.insert(
729729
FlatSchemaKey::FlattenedCurrentSpan,
@@ -744,7 +744,7 @@ where
744744
/// defined members of the output JSON. If they clash, invalid JSON with multiple fields with
745745
/// the same key may be generated.
746746
///
747-
/// It's therefore preferable to use [`with_event`](Self::with_event) instead.
747+
/// It's therefore preferable to use [`with_span_list`](Self::with_span_list) instead.
748748
pub fn with_top_level_flattened_span_list(&mut self) -> &mut Self {
749749
self.flattened_values.insert(
750750
FlatSchemaKey::FlattenedSpanList,

0 commit comments

Comments
 (0)