File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1039,7 +1039,7 @@ impl Context {
1039
1039
1040
1040
/// Common portion of public `instance_create_surface_from_*` functions.
1041
1041
///
1042
- /// Note: Analogous code also exists in the WebGL 2 backend at
1042
+ /// Note: Analogous code also exists in the WebGL2 backend at
1043
1043
/// `wgpu_hal::gles::web::Instance`.
1044
1044
fn create_surface_from_context (
1045
1045
& self ,
Original file line number Diff line number Diff line change @@ -1832,7 +1832,7 @@ impl Instance {
1832
1832
///
1833
1833
/// # Errors
1834
1834
///
1835
- /// - On WebGL 2 : Will return an error if the browser does not support WebGL 2 ,
1835
+ /// - On WebGL2 : Will return an error if the browser does not support WebGL2 ,
1836
1836
/// or declines to provide GPU access (such as due to a resource shortage).
1837
1837
///
1838
1838
/// # Panics
@@ -1886,7 +1886,7 @@ impl Instance {
1886
1886
///
1887
1887
/// # Errors
1888
1888
///
1889
- /// - On WebGL 2 : Will return an error if the browser does not support WebGL 2 ,
1889
+ /// - On WebGL2 : Will return an error if the browser does not support WebGL2 ,
1890
1890
/// or declines to provide GPU access (such as due to a resource shortage).
1891
1891
#[ cfg( all( target_arch = "wasm32" , not( feature = "emscripten" ) ) ) ]
1892
1892
pub fn create_surface_from_canvas (
@@ -1906,7 +1906,7 @@ impl Instance {
1906
1906
///
1907
1907
/// # Errors
1908
1908
///
1909
- /// - On WebGL 2 : Will return an error if the browser does not support WebGL 2 ,
1909
+ /// - On WebGL2 : Will return an error if the browser does not support WebGL2 ,
1910
1910
/// or declines to provide GPU access (such as due to a resource shortage).
1911
1911
#[ cfg( all( target_arch = "wasm32" , not( feature = "emscripten" ) ) ) ]
1912
1912
pub fn create_surface_from_offscreen_canvas (
You can’t perform that action at this time.
0 commit comments