[PRES] [presentations] master: Fix some typoes (thanks Rob)

[email protected] (Derick Rethans) Thu, 15 May 2025 10:06:51 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Author: Derick Rethans (derickr)
Date: 2025-05-15T10:55:32+01:00

Commit: https://github.com/php/presentations/commit/848885a9371d85ccc33c4e9641b894aca582534f
Raw diff: https://github.com/php/presentations/commit/848885a9371d85ccc33c4e9641b894aca582534f.diff

Fix some typoes (thanks Rob)

Changed paths:
  M  slides/internals/php84-asymmetric-visibility-2.xml
  M  slides/internals/php85-asymmetric-visibility-static.xml
  M  slides/internals/php85-grapheme-levenstein2.xml
  M  slides/internals/php85-pipes.xml


Diff:

diff --git a/slides/internals/php84-asymmetric-visibility-2.xml b/slides/internals/php84-asymmetric-visibility-2.xml
index c7a72f32..0f091f7b 100644
--- a/slides/internals/php84-asymmetric-visibility-2.xml
+++ b/slides/internals/php84-asymmetric-visibility-2.xml
@@ -5,7 +5,7 @@
 	<bullet>Only works on typed properties</bullet>
 	<bullet>%set% visibility must be equal or lesser than main (%get%) visbility</bullet>
 	<bullet>Using %$obj->array[]% follows %set% visibility</bullet>
-	<bullet>Inherited properties must have the same time, and might have a wider visibility</bullet>
+	<bullet>Inherited properties must have the same type, and might have a wider visibility</bullet>
 	<bullet>%private(set)% also implies %final%</bullet>
 	<bullet>%readonly% (without %private(set)%) is analogous to %protected(set)% (+ write once semantics)</bullet>
 </list>
diff --git a/slides/internals/php85-asymmetric-visibility-static.xml b/slides/internals/php85-asymmetric-visibility-static.xml
index 4e8fe84b..fd8c01a4 100644
--- a/slides/internals/php85-asymmetric-visibility-static.xml
+++ b/slides/internals/php85-asymmetric-visibility-static.xml
@@ -1,5 +1,5 @@
 <slide>
-<title>PHP 8.5: Asymmetric Visibility for Constants</title>
+<title>PHP 8.5: Asymmetric Visibility for Statics</title>
 
 <blurb>Was missing in PHP 8.4, but turned out to be easy.</blurb>
 
diff --git a/slides/internals/php85-grapheme-levenstein2.xml b/slides/internals/php85-grapheme-levenstein2.xml
index a614c174..adfcfacc 100644
--- a/slides/internals/php85-grapheme-levenstein2.xml
+++ b/slides/internals/php85-grapheme-levenstein2.xml
@@ -1,5 +1,5 @@
 <slide>
-<title>PHP 8.5: grapheme_levenstein</title>
+<title>PHP 8.5: grapheme_levenshtein</title>
 
 <example result="0"><![CDATA[<?php
 $flagUA = 'πŸ‡ΊπŸ‡¦';
diff --git a/slides/internals/php85-pipes.xml b/slides/internals/php85-pipes.xml
index f0a12821..aa5812d2 100644
--- a/slides/internals/php85-pipes.xml
+++ b/slides/internals/php85-pipes.xml
@@ -7,7 +7,7 @@ function slugger(string $input)
     return $input
         |> \strtolower(...)
         |> fn($x) => \preg_replace('/[^a-z]/', '-', $x)
-        |> fn($x) => \trim($value, '-')
+        |> fn($x) => \trim($x, '-')
         |> fn($x) => \preg_replace('/-+/', '-', $x); 
 }