Skip to content

Commit 74575ce

Browse files
authored
fix some comments (#47)
1 parent 72ecd8f commit 74575ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/datadog/environment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ inline const char* const variable_names[] = {
7272
StringView name(Variable variable);
7373

7474
// Return the value of the specified environment `variable`, or return
75-
// `std::nullptr` if that variable is not set in the environment.
75+
// `nullopt` if that variable is not set in the environment.
7676
Optional<StringView> lookup(Variable variable);
7777

7878
nlohmann::json to_json();

src/datadog/span.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Span {
160160
void inject(DictWriter& writer) const;
161161

162162
// Return a reference to this span's trace segment. The trace segment has
163-
// member functions that effect the trace as a whole, such as
163+
// member functions that affect the trace as a whole, such as
164164
// `TraceSegment::override_sampling_priority`.
165165
TraceSegment& trace_segment();
166166
const TraceSegment& trace_segment() const;

src/datadog/trace_sampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// traces that originate in this process will be sent to Datadog.
55
//
66
// `TraceSampler` is not instantiated directly, but is instead configured via
7-
// `TracerConfig::span_sampler`.
7+
// `TracerConfig::trace_sampler`.
88
//
99
// When a span is extracted from an outside context (i.e.
1010
// `Tracer::extract_span`), then the trace sampling decision is included in the

0 commit comments

Comments
 (0)