Skip to content

Commit

Permalink
Fix typos in permissions policy documentation (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock authored Sep 15, 2024
1 parent 833d958 commit 748239c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public class PermissionsPolicyBuilder
public XrSpatialTrackingPermissionsPolicyDirectiveBuilder AddXrSpatialTracking() => AddDirective(new XrSpatialTrackingPermissionsPolicyDirectiveBuilder());

/// <summary>
/// Create a custom Feature-Policy directive for an un-implemented directive.
/// Create a custom Permissions-Policy directive for an un-implemented directive.
///
/// The directive can be built using standard methods such as <see cref="PermissionsPolicyDirectiveBuilder.Self"/>
/// and <see cref="PermissionsPolicyDirectiveBuilder.None"/>
Expand All @@ -371,7 +371,7 @@ public class PermissionsPolicyBuilder
public CustomPermissionsPolicyDirectiveBuilder AddCustomFeature(string directive) => AddDirective(new CustomPermissionsPolicyDirectiveBuilder(directive));

/// <summary>
/// Create a custom Feature-Policy directive for an un-implemented directive.
/// Create a custom Permissions-Policy directive for an un-implemented directive.
///
/// The directive can be built using standard methods such as <see cref="PermissionsPolicyDirectiveBuilder.Self"/>
/// and <see cref="PermissionsPolicyDirectiveBuilder.None"/>
Expand All @@ -388,9 +388,9 @@ private T AddDirective<T>(T directive) where T : PermissionsPolicyDirectiveBuild
}

/// <summary>
/// Builds the Feature-Policy value.
/// Builds the Permissions-Policy value.
/// </summary>
/// <returns>The string representing the complete Feature-Policy value.</returns>
/// <returns>The string representing the complete Permissions-Policy value.</returns>
internal string Build()
{
return string.Join(", ", _directives.Values.Select(x => x.Build()).Where(x => !string.IsNullOrEmpty(x)));
Expand Down

0 comments on commit 748239c

Please sign in to comment.