Skip to content

Commit

Permalink
Merge pull request #1394 from antonilol/palette_doc
Browse files Browse the repository at this point in the history
fix function docs of Palette::new
  • Loading branch information
Cobrand authored Jun 13, 2024
2 parents 4e9af37 + 7c6b24c commit c4ed97c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sdl2/pixels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ pub struct Palette {

impl Palette {
#[inline]
/// Creates a new, uninitialized palette
/// Create a palette structure with the specified number of color entries.
///
/// The palette entries are initialized to white.
#[doc(alias = "SDL_AllocPalette")]
pub fn new(mut capacity: usize) -> Result<Self, String> {
use crate::common::*;
Expand Down

0 comments on commit c4ed97c

Please sign in to comment.