We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230032b commit f061737Copy full SHA for f061737
library/core/src/primitive_docs.rs
@@ -1335,14 +1335,16 @@ mod prim_f16 {}
1335
/// For example:
1336
///
1337
/// ```
1338
-/// x = x.algebraic_add(x, a.algebraic_mul(b));
1339
-/// ```
+/// let x = 12.0;
+/// let a = 34.0;
1340
+/// let b = 56.0;
1341
-/// May be rewritten as either:
1342
+/// // This:
1343
+/// let x = x.algebraic_add(x, a.algebraic_mul(b));
1344
-/// x = x + (a * b); // As written
1345
-/// x = (a * b) + x; // Reordered to allow using a single `fma`
+/// // May be rewritten as either:
1346
+/// let x = x + (a * b); // As written
1347
+/// let x = (a * b) + x; // Reordered to allow using a single `fma`
1348
1349
1350
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments