fix: typo in window’s set_subtitle fn (#123)

This commit is contained in:
Dustin 2024-07-15 08:41:48 +01:00 committed by GitHub
parent e3bbb9366c
commit 7ffe39891c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -205,7 +205,7 @@ impl<T> Window<T> {
/// underlying window. When this property is an empty string, the system removes the subtitle
/// from the window layout. Allocates and passes an `NSString` over to the Objective C runtime.
/// Does nothing when less than version 11.
pub fn set_subtittle(&self, subtitle: &str) {
pub fn set_subtitle(&self, subtitle: &str) {
if !os::is_minimum_version(11) {
return;
}