xudong963 commented on PR #15832:
URL: https://github.com/apache/datafusion/pull/15832#issuecomment-2849865580

   > Thanks, mate, but I think it shows for the `lib.rs` file, and we didn't 
make any changes there. Does this mean that we need to change over there?
   
   If you take a look at the file, there is a macro in `lib.rs` pointing to the 
doc file
   ```rust
   #[cfg(doctest)]
   doc_comment::doctest!(
       "../../../docs/source/library-user-guide/extending-operators.md",
       library_user_guide_extending_operators
   );
   ```
   
   
   
   > And one more thing: When we are using the code as an example, do we need 
to check the imports?
   
   Yes, there is an example: 
https://github.com/apache/datafusion/blob/main/datafusion/catalog/src/table.rs#L203-L214
   
   You can add **#** at the beginning of the imports to hide them in doc


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to