Skip to content

Commit 4222d50

Browse files
HTGAzureX1212GabrielMajeri
authored andcommitted
make GraphicsOutput.query_mode(...) public
This commit makes the method `query_mode` of `GraphicsOutput` public, likely due to a typo as the documentation is there.
1 parent 9af9349 commit 4222d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proto/console/gop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub struct GraphicsOutput<'boot> {
9595
impl<'boot> GraphicsOutput<'boot> {
9696
/// Returns information for an available graphics mode that the graphics
9797
/// device and the set of active video output devices supports.
98-
fn query_mode(&self, index: u32) -> Result<Mode> {
98+
pub fn query_mode(&self, index: u32) -> Result<Mode> {
9999
let mut info_sz = 0;
100100
let mut info = ptr::null();
101101

0 commit comments

Comments
 (0)