Skip to content

Commit

Permalink
bevy_asset: add missing doc in wasm (bevyengine#5407)
Browse files Browse the repository at this point in the history
# Objective

- `#![warn(missing_docs)]` was added to bevy_asset in bevyengine#3536
- A method was not documented when targeting wasm

## Solution

- Add documentation for it
  • Loading branch information
mockersf authored and james7132 committed Oct 28, 2022
1 parent 710290c commit b19f45f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_asset/src/io/wasm_asset_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct WasmAssetIo {
}

impl WasmAssetIo {
/// Creates a new `WasmAssetIo`. The path provided will be used to build URLs to query for assets.
pub fn new<P: AsRef<Path>>(path: P) -> Self {
WasmAssetIo {
root_path: path.as_ref().to_owned(),
Expand Down

0 comments on commit b19f45f

Please sign in to comment.