Skip to content

Commit

Permalink
chore: fix docs wording
Browse files Browse the repository at this point in the history
  • Loading branch information
morristai committed Dec 24, 2023
1 parent fe15b1a commit cb8cef1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/services/dbfs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This service can be used to:
- `endpoint`: Set the endpoint for backend.
- `token`: Databricks personal access token.

Refer to [`Builder`]'s public API docs for more information.
Refer to [`DbfsBuilder`]'s public API docs for more information.

## Examples

Expand Down
2 changes: 1 addition & 1 deletion core/src/services/swift/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This service can be used to:
- `container`: Swift container.
- `token`: Swift personal access token.

Refer to [`Builder`]'s public API docs for more information.
Refer to [`SwiftBuilder`]'s public API docs for more information.

## Examples

Expand Down
4 changes: 3 additions & 1 deletion website/docs/services/huggingface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ use std::collections::HashMap;
#[tokio::main]
async fn main() -> Result<()> {
let mut map = HashMap::new();

map.insert("repo_type".to_string(), "dataset".to_string());
map.insert("repo_id".to_string(), "databricks/databricks-dolly-15k".to_string());
map.insert("revision".to_string(), "main".to_string());
map.insert("root".to_string(), "/path/to/dir".to_string());
map.insert("token".to_string(), "access_token".to_string());

let op: Operator = Operator::via_map(Scheme::Huggingface, map)?;

Ok(())
}
```
Expand All @@ -43,7 +45,7 @@ async fn main() -> Result<()> {
import { Operator } from "opendal";

async function main() {
# Use `huggingface` or `hf` for scheme name
// Use `huggingface` or `hf` for scheme name
const op = new Operator("huggingface", {
repo_type: "dataset",
repo_id: "databricks/databricks-dolly-15k",
Expand Down

0 comments on commit cb8cef1

Please sign in to comment.