Skip to content

Apache DataFusion SQL Query Engine

chore(docs): resolve some docs typos (#23347)

WeblWabl9747084187dd
diff --git a/datafusion/catalog-listing/src/table.rs b/datafusion/catalog-listing/src/table.rs
index 9d8b77cfcc..632b829b16 100644
--- a/datafusion/catalog-listing/src/table.rs
+++ b/datafusion/catalog-listing/src/table.rs
@@ -148,15 +148,15 @@ pub struct ListFilesResult {
/// # use datafusion_datasource_parquet::file_format::ParquetFormat;/// #
/// # use datafusion_catalog::Session;
/// async fn get_listing_table(session: &dyn Session) -> Result<Arc<dyn TableProvider>> {
-/// let table_path = "/path/to/parquet";
+/// let table_path = "/path/to/parquet";
///
-/// // Parse the path
-/// let table_path = ListingTableUrl::parse(table_path)?;
+/// // Parse the path
+/// let table_path = ListingTableUrl::parse(table_path)?;
///
-/// // Create default parquet options
-/// let file_format = ParquetFormat::new();
-/// let listing_options = ListingOptions::new(Arc::new(file_format))
-/// .with_file_extension(".parquet");
+/// // Create default parquet options
+/// let file_format = ParquetFormat::new();
+/// let listing_options = ListingOptions::new(Arc::new(file_format))
+/// .with_file_extension(".parquet");
///
/// // Resolve the schema
/// let resolved_schema = listing_options
@@ -170,8 +170,8 @@ pub struct ListFilesResult {
/// // Create a new TableProvider
/// let provider = Arc::new(ListingTable::try_new(config)?);
///
-/// # Ok(provider)
-/// # }
+/// Ok(provider)
+/// }
/// ```
#[derive(Debug, Clone)]
pub struct ListingTable {
diff --git a/datafusion/core/src/execution/context/mod.rs b/datafusion/core/src/execution/context/mod.rs
index e878b5a53f..0ff3ab7d0e 100644
--- a/datafusion/core/src/execution/context/mod.rs
+++ b/datafusion/core/src/execution/context/mod.rs
@@ -167,7 +167,7 @@ where
/// * Create a [`DataFrame`] from a CSV or Parquet data source.
/// * Register a CSV or Parquet data source as a table that can be referenced from a SQL query.
/// * Register a custom data source that can be referenced from a SQL query.
-/// * Execution a SQL query
+/// * Execute a SQL query
///
/// # Example: DataFrame API
///