Skip to content

Commit 82b14e7

Browse files
committed
Update message.pot, Fix line endings
1 parent 29df0e4 commit 82b14e7

File tree

1 file changed

+48
-32
lines changed

1 file changed

+48
-32
lines changed

po/messages.pot

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -744,13 +744,15 @@ msgstr ""
744744

745745
#: src\idioms/ctor.md:8
746746
msgid ""
747-
"```rust\r\n"
747+
"````rust\r\n"
748748
"/// Time in seconds.\r\n"
749749
"///\r\n"
750750
"/// # Example\r\n"
751+
"///\r\n"
752+
"/// ```\r\n"
751753
"/// let s = Second::new(42);\r\n"
752754
"/// assert_eq!(42, s.value());\r\n"
753-
"\r\n"
755+
"/// ```\r\n"
754756
"pub struct Second {\r\n"
755757
" value: u64\r\n"
756758
"}\r\n"
@@ -767,27 +769,29 @@ msgid ""
767769
" self.value\r\n"
768770
" }\r\n"
769771
"}\r\n"
770-
"```"
772+
"````"
771773
msgstr ""
772774

773-
#: src\idioms/ctor.md:33
775+
#: src\idioms/ctor.md:35
774776
msgid "## Default Constructors\r"
775777
msgstr ""
776778

777-
#: src\idioms/ctor.md:35
779+
#: src\idioms/ctor.md:37
778780
msgid ""
779781
"Rust supports default constructors with the [`Default`][std-default] trait:"
780782
msgstr ""
781783

782-
#: src\idioms/ctor.md:37
784+
#: src\idioms/ctor.md:39
783785
msgid ""
784-
"```rust\r\n"
786+
"````rust\r\n"
785787
"/// Time in seconds.\r\n"
786788
"///\r\n"
787789
"/// # Example\r\n"
788790
"///\r\n"
791+
"/// ```\r\n"
789792
"/// let s = Second::default();\r\n"
790793
"/// assert_eq!(0, s.value());\r\n"
794+
"/// ```\r\n"
791795
"pub struct Second {\r\n"
792796
" value: u64\r\n"
793797
"}\r\n"
@@ -804,19 +808,27 @@ msgid ""
804808
" Self { value: 0 }\r\n"
805809
" }\r\n"
806810
"}\r\n"
807-
"```"
811+
"````"
808812
msgstr ""
809813

810-
#: src\idioms/ctor.md:62
814+
#: src\idioms/ctor.md:66
811815
msgid ""
812816
"`Default` can also be derived if all types of all fields implement "
813817
"`Default`,\r\n"
814818
"like they do with `Second`:"
815819
msgstr ""
816820

817-
#: src\idioms/ctor.md:65
821+
#: src\idioms/ctor.md:69
818822
msgid ""
819-
"```rust\r\n"
823+
"````rust\r\n"
824+
"/// Time in seconds.\r\n"
825+
"///\r\n"
826+
"/// # Example\r\n"
827+
"///\r\n"
828+
"/// ```\r\n"
829+
"/// let s = Second::default();\r\n"
830+
"/// assert_eq!(0, s.value());\r\n"
831+
"/// ```\r\n"
820832
"#[derive(Default)]\r\n"
821833
"pub struct Second {\r\n"
822834
" value: u64\r\n"
@@ -828,10 +840,10 @@ msgid ""
828840
" self.value\r\n"
829841
" }\r\n"
830842
"}\r\n"
831-
"```"
843+
"````"
832844
msgstr ""
833845

834-
#: src\idioms/ctor.md:79
846+
#: src\idioms/ctor.md:91
835847
msgid ""
836848
"**Note:** It is common and expected for types to implement both\r\n"
837849
"`Default` and an empty `new` constructor. `new` is the constructor\r\n"
@@ -840,7 +852,7 @@ msgid ""
840852
"should, even if it is functionally identical to default."
841853
msgstr ""
842854

843-
#: src\idioms/ctor.md:85
855+
#: src\idioms/ctor.md:97
844856
msgid ""
845857
"**Hint:** The advantage of implementing or deriving `Default` is that your "
846858
"type\r\n"
@@ -849,11 +861,11 @@ msgid ""
849861
"any of the [`*or_default` functions in the standard library][std-or-default]."
850862
msgstr ""
851863

852-
#: src\idioms/ctor.md:89
864+
#: src\idioms/ctor.md:101
853865
msgid "## See also\r"
854866
msgstr ""
855867

856-
#: src\idioms/ctor.md:91
868+
#: src\idioms/ctor.md:103
857869
msgid ""
858870
"- The [default idiom](default.md) for a more in-depth description of the\r\n"
859871
" `Default` trait.\r\n"
@@ -2454,7 +2466,7 @@ msgstr ""
24542466

24552467
#: src\idioms/rustdoc-init.md:16
24562468
msgid ""
2457-
"```rust,ignore\r\n"
2469+
"````rust,ignore\r\n"
24582470
"struct Connection {\r\n"
24592471
" name: String,\r\n"
24602472
" stream: TcpStream,\r\n"
@@ -2464,14 +2476,16 @@ msgid ""
24642476
" /// Sends a request over the connection.\r\n"
24652477
" ///\r\n"
24662478
" /// # Example\r\n"
2467-
" /// # Boilerplate are required to get an example working.\r\n"
2479+
" /// ```no_run\r\n"
2480+
" /// # // Boilerplate are required to get an example working.\r\n"
24682481
" /// # let stream = TcpStream::connect(\"127.0.0.1:34254\");\r\n"
24692482
" /// # let connection = Connection { name: \"foo\".to_owned(), stream "
24702483
"};\r\n"
24712484
" /// # let request = Request::new(\"RequestId\", RequestType::Get, "
24722485
"\"payload\");\r\n"
24732486
" /// let response = connection.send_request(request);\r\n"
24742487
" /// assert!(response.is_ok());\r\n"
2488+
" /// ```\r\n"
24752489
" fn send_request(&self, request: Request) -> Result<Status, SendErr> {\r\n"
24762490
" // ...\r\n"
24772491
" }\r\n"
@@ -2481,24 +2495,24 @@ msgid ""
24812495
" // ...\r\n"
24822496
" }\r\n"
24832497
"}\r\n"
2484-
"```"
2498+
"````"
24852499
msgstr ""
24862500

2487-
#: src\idioms/rustdoc-init.md:43
2501+
#: src\idioms/rustdoc-init.md:45
24882502
msgid "## Example\r"
24892503
msgstr ""
24902504

2491-
#: src\idioms/rustdoc-init.md:45
2505+
#: src\idioms/rustdoc-init.md:47
24922506
msgid ""
24932507
"Instead of typing all of this boilerplate to create a `Connection` and\r\n"
24942508
"`Request`, it is easier to just create a wrapping helper function which "
24952509
"takes\r\n"
24962510
"them as arguments:"
24972511
msgstr ""
24982512

2499-
#: src\idioms/rustdoc-init.md:49
2513+
#: src\idioms/rustdoc-init.md:51
25002514
msgid ""
2501-
"```rust,ignore\r\n"
2515+
"````rust,ignore\r\n"
25022516
"struct Connection {\r\n"
25032517
" name: String,\r\n"
25042518
" stream: TcpStream,\r\n"
@@ -2508,38 +2522,40 @@ msgid ""
25082522
" /// Sends a request over the connection.\r\n"
25092523
" ///\r\n"
25102524
" /// # Example\r\n"
2525+
" /// ```\r\n"
25112526
" /// # fn call_send(connection: Connection, request: Request) {\r\n"
25122527
" /// let response = connection.send_request(request);\r\n"
25132528
" /// assert!(response.is_ok());\r\n"
25142529
" /// # }\r\n"
2530+
" /// ```\r\n"
25152531
" fn send_request(&self, request: Request) {\r\n"
25162532
" // ...\r\n"
25172533
" }\r\n"
25182534
"}\r\n"
2519-
"```"
2535+
"````"
25202536
msgstr ""
25212537

2522-
#: src\idioms/rustdoc-init.md:69
2538+
#: src\idioms/rustdoc-init.md:73
25232539
msgid ""
25242540
"**Note** in the above example the line `assert!(response.is_ok());` will "
25252541
"not\r\n"
25262542
"actually run while testing because it is inside a function which is never\r\n"
25272543
"invoked."
25282544
msgstr ""
25292545

2530-
#: src\idioms/rustdoc-init.md:73
2546+
#: src\idioms/rustdoc-init.md:77
25312547
msgid "## Advantages\r"
25322548
msgstr ""
25332549

2534-
#: src\idioms/rustdoc-init.md:75
2550+
#: src\idioms/rustdoc-init.md:79
25352551
msgid "This is much more concise and avoids repetitive code in examples."
25362552
msgstr ""
25372553

2538-
#: src\idioms/rustdoc-init.md:77
2554+
#: src\idioms/rustdoc-init.md:81
25392555
msgid "## Disadvantages\r"
25402556
msgstr ""
25412557

2542-
#: src\idioms/rustdoc-init.md:79
2558+
#: src\idioms/rustdoc-init.md:83
25432559
msgid ""
25442560
"As example is in a function, the code will not be tested. Though it will "
25452561
"still be\r\n"
@@ -2549,15 +2565,15 @@ msgid ""
25492565
"`no_run`."
25502566
msgstr ""
25512567

2552-
#: src\idioms/rustdoc-init.md:83
2568+
#: src\idioms/rustdoc-init.md:87
25532569
msgid "## Discussion\r"
25542570
msgstr ""
25552571

2556-
#: src\idioms/rustdoc-init.md:85
2572+
#: src\idioms/rustdoc-init.md:89
25572573
msgid "If assertions are not required this pattern works well."
25582574
msgstr ""
25592575

2560-
#: src\idioms/rustdoc-init.md:87
2576+
#: src\idioms/rustdoc-init.md:91
25612577
msgid ""
25622578
"If they are, an alternative can be to create a public method to create a "
25632579
"helper\r\n"

0 commit comments

Comments
 (0)