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:
parent
4b191d968d
commit
77894639f8
@ -25,6 +25,7 @@ pub struct WasmAssetIo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl 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 {
|
pub fn new<P: AsRef<Path>>(path: P) -> Self {
|
||||||
WasmAssetIo {
|
WasmAssetIo {
|
||||||
root_path: path.as_ref().to_owned(),
|
root_path: path.as_ref().to_owned(),
|
||||||
|
Loading…
Reference in New Issue
Block a user