Skip to content

Commit 47e4c9e

Browse files
authored
Rollup merge of #96941 - nannany:master, r=lcnr,JohnTitor
update graphviz links Update graphviz links.
2 parents 231cd0f + 2c604f6 commit 47e4c9e

File tree

1 file changed

+8
-10
lines changed
  • compiler/rustc_graphviz/src

1 file changed

+8
-10
lines changed

compiler/rustc_graphviz/src/lib.rs

+8-10
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44
//! use with [Graphviz](https://www.graphviz.org/) by walking a labeled
55
//! graph. (Graphviz can then automatically lay out the nodes and edges
66
//! of the graph, and also optionally render the graph as an image or
7-
//! other [output formats](
8-
//! https://www.graphviz.org/content/output-formats), such as SVG.)
7+
//! other [output formats](https://www.graphviz.org/docs/outputs), such as SVG.)
98
//!
109
//! Rather than impose some particular graph data structure on clients,
1110
//! this library exposes two traits that clients can implement on their
1211
//! own structs before handing them over to the rendering function.
1312
//!
1413
//! Note: This library does not yet provide access to the full
15-
//! expressiveness of the [DOT language](
16-
//! https://www.graphviz.org/doc/info/lang.html). For example, there are
17-
//! many [attributes](https://www.graphviz.org/content/attrs) related to
18-
//! providing layout hints (e.g., left-to-right versus top-down, which
14+
//! expressiveness of the [DOT language](https://www.graphviz.org/doc/info/lang.html).
15+
//! For example, there are many [attributes](https://www.graphviz.org/doc/info/attrs.html)
16+
//! related to providing layout hints (e.g., left-to-right versus top-down, which
1917
//! algorithm to use, etc). The current intention of this library is to
2018
//! emit a human-readable .dot file with very regular structure suitable
2119
//! for easy post-processing.
@@ -292,7 +290,7 @@ pub enum LabelText<'a> {
292290
LabelStr(Cow<'a, str>),
293291

294292
/// This kind of label uses the graphviz label escString type:
295-
/// <https://www.graphviz.org/content/attrs#kescString>
293+
/// <https://www.graphviz.org/docs/attr-types/escString>
296294
///
297295
/// Occurrences of backslashes (`\`) are not escaped; instead they
298296
/// are interpreted as initiating an escString escape sequence.
@@ -307,12 +305,12 @@ pub enum LabelText<'a> {
307305
/// printed exactly as given, but between `<` and `>`. **No
308306
/// escaping is performed.**
309307
///
310-
/// [html]: https://www.graphviz.org/content/node-shapes#html
308+
/// [html]: https://www.graphviz.org/doc/info/shapes.html#html
311309
HtmlStr(Cow<'a, str>),
312310
}
313311

314312
/// The style for a node or edge.
315-
/// See <https://www.graphviz.org/doc/info/attrs.html#k:style> for descriptions.
313+
/// See <https://www.graphviz.org/docs/attr-types/style/> for descriptions.
316314
/// Note that some of these are not valid for edges.
317315
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
318316
pub enum Style {
@@ -439,7 +437,7 @@ pub trait Labeller<'a> {
439437
/// Maps `n` to one of the [graphviz `shape` names][1]. If `None`
440438
/// is returned, no `shape` attribute is specified.
441439
///
442-
/// [1]: https://www.graphviz.org/content/node-shapes
440+
/// [1]: https://www.graphviz.org/doc/info/shapes.html
443441
fn node_shape(&'a self, _node: &Self::Node) -> Option<LabelText<'a>> {
444442
None
445443
}

0 commit comments

Comments
 (0)