Whoops, forgot "{}"

This commit is contained in:
Joshua Brest 2023-04-24 03:46:52 +08:00 committed by GitHub
parent 8056329f65
commit 28c280556a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ impl<T> Window<T> {
/// 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) {
if !os::is_minimum_version(11) return;
if !os::is_minimum_version(11) { return; }
unsafe {
let subtitle = NSString::new(subtitle);