mirror of
https://github.com/php/doc-en.git
synced 2026-03-24 07:42:10 +01:00
Fix typo (#5280)
Sometimes the spelling used is "writeable", sometimes it's "writable". Both are valid in English, but the SplFileInfo method is "isWritable".
This commit is contained in:
@@ -33,13 +33,13 @@
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example>
|
||||
<title><methodname>SplFileInfo::isWriteable</methodname> example</title>
|
||||
<title><methodname>SplFileInfo::isWritable</methodname> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$info = new SplFileInfo('locked.jpg');
|
||||
if (!$info->isWriteable()) {
|
||||
echo $info->getFilename() . ' is not writeable';
|
||||
if (!$info->isWritable()) {
|
||||
echo $info->getFilename() . ' is not writable';
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
@@ -47,7 +47,7 @@ if (!$info->isWriteable()) {
|
||||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
locked.jpg is not writeable
|
||||
locked.jpg is not writable
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
Reference in New Issue
Block a user