# assistant: Allow passing module paths to \`/rustdoc\` command \(\#12536\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/4c51ee78160cac24ab47d7808de9986c9597f194)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 4c51ee78160cac24ab47d7808de9986c9597f194

Requested commit: 4c51ee78160cac24ab47d7808de9986c9597f194

Commit: 4c51ee78160cac24ab47d7808de9986c9597f194

Tree: 47f3c860520905e15ff175e4be16fa0768a57012

Author: Marshall Bowers

Committer: GitHub

## Message

````
assistant: Allow passing module paths to `/rustdoc` command (#12536)

This PR updates the `/rustdoc` command to accept module paths in
addition to just a crate name.

This will return the docs.rs page just for that particular module.

### Examples

```
/rustdoc bevy
/rustdoc bevy::ecs
/rustdoc bevy::ecs::component
```

<img width="641" alt="Screenshot 2024-05-31 at 11 18 25 AM"
src="https://github.com/zed-industries/zed/assets/1486634/d88af19f-5ba1-4073-8108-63cccd138db6">

<img width="641" alt="Screenshot 2024-05-31 at 11 18 35 AM"
src="https://github.com/zed-industries/zed/assets/1486634/9c414ab1-0be8-4d79-8c64-b45f19266556">


Release Notes:

- N/A
````

## Parents

- [660cf214c706fe9a247a326ec6814f86789687d9](https://git.cafe/gitcafe/zed/commit/660cf214c706fe9a247a326ec6814f86789687d9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/4c51ee78160cac24ab47d7808de9986c9597f194?format=markdown)
