@@ -7,13 +7,13 @@ use crate::foundations::{func, Cast};
77use  crate :: loading:: Readable ; 
88use  crate :: World ; 
99
10- /// Reads plain text or data from a file.  
10+ /// ファイルからプレーンテキストやデータを読み込む。  
1111/// 
12- /// By default, the file will be read as UTF-8 and returned as a [string ]($str).  
12+ /// デフォルトでは、ファイルはUTF-8として読み込まれ、[文字列 ]($str)として返されます。  
1313/// 
14- /// If you specify  `{encoding: none}`, this returns raw  [bytes] instead.  
14+ /// `{encoding: none}`を指定した場合、この関数は代わりに生の [bytes]を返します。  
1515/// 
16- /// # Example  
16+ /// # 例  
1717/// ```example 
1818/// An example for a HTML file: \ 
1919/// #let text = read("example.html") 
@@ -25,13 +25,13 @@ use crate::World;
2525#[ func]  
2626pub  fn  read ( 
2727    engine :  & mut  Engine , 
28-     /// Path to a file.  
28+     /// ファイルのパス。  
2929     /// 
30-      /// For more details, see the [Paths section ]($syntax/#paths).  
30+      /// 詳細については、[パスのセクション ]($syntax/#paths)を参照してください。  
3131     path :  Spanned < EcoString > , 
32-     /// The encoding to read the file with.  
32+     /// ファイルを読み込む際に使用するエンコーディング。  
3333     /// 
34-      /// If set to  `{none}`, this function returns raw bytes.  
34+      /// `{none}`に設定すると、この関数は生のバイトを返します。  
3535     #[ named]  
3636    #[ default( Some ( Encoding :: Utf8 ) ) ]  
3737    encoding :  Option < Encoding > , 
@@ -47,9 +47,9 @@ pub fn read(
4747    } ) 
4848} 
4949
50- /// An encoding of a file.  
50+ /// ファイルのエンコーディング。  
5151#[ derive( Debug ,  Copy ,  Clone ,  Eq ,  PartialEq ,  Hash ,  Cast ) ]  
5252pub  enum  Encoding  { 
53-     /// The  Unicode UTF-8 encoding.  
53+     /// Unicode UTF-8エンコーディング。  
5454     Utf8 , 
5555} 
0 commit comments