bevy_asset: add missing doc in wasm (#5407)

# Objective

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

## Solution

- Add documentation for it
This commit is contained in:
François 2022-07-21 14:57:38 +00:00
parent 4b191d968d
commit 77894639f8

View File

@ -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(),