File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,12 @@ impl PyroscopeConfig {
9999 /// # Example
100100 ///
101101 /// ```
102- /// # fn main() -> Result<(), PyroscopeError> {
103102 /// use std::time::Duration;
104103 /// use pyroscope::pyroscope::PyroscopeConfig;
104+ /// # use pyroscope::PyroscopeError;
105+ /// # fn main() -> Result<(), PyroscopeError> {
105106 /// let config = PyroscopeConfig::new("http://localhost:8080", "my-app")
106- /// .accumulation_cycle(Duration::from_millis(4587))? ;
107+ /// .accumulation_cycle(Duration::from_millis(4587));
107108 /// # Ok(())
108109 /// # }
109110 /// ```
@@ -208,13 +209,14 @@ impl PyroscopeAgentBuilder {
208209 /// # Example
209210 ///
210211 /// ```
211- /// # fn main() -> Result<(), PyroscopeError> {
212+ /// use pyroscope::pyroscope::PyroscopeAgentBuilder;
212213 /// use std::time::Duration;
214+ /// # use pyroscope::PyroscopeError;
215+ /// # fn main() -> Result<(), PyroscopeError> {
213216 ///
214217 /// let builder = PyroscopeAgentBuilder::new("http://localhost:8080", "my-app")
215- /// .accumulation_cycle(Duration::from_secs(3))
216- /// .build()
217- /// ?;
218+ /// .accumulation_cycle(Duration::from_secs(3))
219+ /// .build()?;
218220 /// # Ok(())
219221 /// # }
220222 /// ```
You can’t perform that action at this time.
0 commit comments