Skip to content

Commit d9f5772

Browse files
committed
Fix ns_string auto_doc_cfg
1 parent dd8d369 commit d9f5772

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

objc2/src/foundation/__ns_string.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ impl CachedNSString {
238238

239239
/// Creates an [`NSString`][`crate::foundation::NSString`] from a static string.
240240
///
241-
/// Currently only supported on Apple targets.
242-
///
243241
///
244242
/// # Examples
245243
///
@@ -306,6 +304,7 @@ impl CachedNSString {
306304
/// where possible.
307305
///
308306
/// [`NSString::from_str`]: crate::foundation::NSString::from_str
307+
#[cfg(feature = "foundation")] // For auto_doc_cfg
309308
#[macro_export]
310309
macro_rules! ns_string {
311310
($s:expr) => {{

0 commit comments

Comments
 (0)